manage-supply-chain

通过 Harness MCP 管理软件供应链保障(SSCA):配置使用 CycloneDX 或 SPDX 的自动化 SBOM 生成,设置使用 Cosign 的制品签名与认证,使用 OPA 定义供应链安全策略,并跟踪 SLSA 来源级别。用于生成 SBOM、签署制品、执行供应链策略、跟踪软件来源或管理 SLSA 合规性(不用于 OPA 流水线治理或漏洞扫描)。

仓库最近推送
GitHub Stars
138
Forks
30
Issues / PRs
4

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "manage-supply-chain":https://skillpi.com/zh/skills/deepskill-6d30be7779b0fa9755292d078537e16620655d0346a3bb713cc9606892fff8ab。安装前核对上游来源和版本:https://github.com/harness/harness-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

通过 Harness MCP 管理软件供应链保障(SSCA):配置使用 CycloneDX 或 SPDX 的自动化 SBOM 生成,设置使用 Cosign 的制品签名与认证,使用 OPA 定义供应链安全策略,并跟踪 SLSA 来源级别。用于生成 SBOM、签署制品、执行供应链策略、跟踪软件来源或管理 SLSA 合规性(不用于 OPA 流水线治理或漏洞扫描)。

0 下载

介绍来源: third_party · harness · 1.0.0 参考来源

SkillPi 解读

能完成的任务
来源文档未说明。
适合谁
来源文档未说明。
输入和输出
来源文档未说明。
软件、账号及付费要求
来源文档未说明。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: manage-supply-chain
description: >-
  Manage Harness Software Supply Chain Assurance (SSCA) via MCP. Configure automated SBOM
  generation with CycloneDX or SPDX formats, set up artifact signing and attestation with
  Cosign, define supply chain security policies using OPA, and track SLSA provenance levels.
  Use when asked to generate SBOMs, sign artifacts, enforce supply chain policies, track
  software provenance, or manage SLSA compliance. Do NOT use for OPA pipeline governance
  policies (use create-policy instead) or vulnerability scanning (use security-report instead).
  Trigger phrases: SBOM, software bill of materials, supply chain security, SLSA, artifact
  signing, cosign, provenance, attestation, CycloneDX, SPDX, supply chain policy.
metadata:
  author: Harness
  version: 1.0.0
  mcp-server: harness-mcp-v2
license: Apache-2.0
compatibility: Requires Harness MCP v2 server (harness-mcp-v2)

Manage Supply Chain

Configure SBOM generation, artifact signing, supply chain policy enforcement, and SLSA provenance tracking in Harness SSCA.

Instructions

Step 1: Establish Scope

Confirm the user's org, project, service, and build tool.

Call MCP tool: harness_list
Parameters:
  resource_type: "project"
  org_id: "<organization>"

Step 2: Identify the SSCA Task

Determine which workflow the user needs:

  1. SBOM Generation -- Automated SBOM creation on every build with signing and attestation
  2. Supply Chain Policy Enforcement -- OPA policies for artifact provenance, signing, and compliance

Step 3: Configure SBOM Generation

Gather from the user:

  • Service name, build tool, and language
  • Pipeline to attach SBOM generation to
  • SBOM format: CycloneDX 1.5 (JSON) or SPDX 2.3 (JSON)
  • SBOM scope: direct dependencies, transitive, or full (OS + language + transitive)
  • Signing key provider: Cosign keyless (Sigstore), Cosign with KMS, AWS KMS, GCP KMS

Configure SBOM generation in the CI pipeline:

  • Trigger on every successful build or container push
  • Generate SBOM in the selected format
  • Sign SBOM with the configured key provider
  • Attach as OCI artifact alongside the container image
  • Require valid signature verification before deployment to protected environments

Supply Chain Risk Analysis:

  • Flag dependencies with known CVEs above CVSS threshold (default 7.0)
  • Detect license conflicts (e.g., GPL-3.0, AGPL-3.0)
  • Flag dependencies outdated by more than N months
  • Flag dependencies from untrusted registries

Compliance Mapping:

  • Target SLSA level (Level 1, 2, or 3)
  • Map to compliance frameworks: NIST SSDF, EO 14028, SOC2

Step 4: Configure Supply Chain Policy Enforcement

Gather enforcement points from the user (build, push, deploy, or all stages).

Define OPA policies:

  1. Artifact Provenance -- Require all container images to have valid Cosign signatures
  2. SLSA Level -- Enforce minimum SLSA level for production deployments
  3. SBOM Requirements -- Block deployment if SBOM is missing or unsigned
  4. Dependency Restrictions -- Block artifacts with banned licenses or known malicious packages
  5. Registry Allowlist -- Only allow artifacts from approved registries
Call MCP tool: harness_create
Parameters:
  resource_type: "policy"
  org_id: "<organization>"
  project_id: "<project>"
  body:
    name: "supply-chain-enforcement"
    identifier: "supply_chain_enforcement"
    rego: |
      package harness.supply_chain

      deny[msg] {
        not input.artifact.signed
        msg := "Artifact must be signed with Cosign before deployment"
      }

      deny[msg] {
        not input.artifact.sbom_attached
        msg := "SBOM must be generated and attached to artifact"
      }

Step 5: Set Up SBOM Storage and Dashboards

Configure SBOM storage:

  • Store in Harness AR alongside the image, or in S3/GCS/Dependency-Track
  • Set retention period (default 365 days)

Enable the SSCA portal dashboard for:

  • Real-time component inventory across all services
  • Vulnerability trends over time
  • License compliance status
  • SLSA level tracking per service

Examples

  • "Generate SBOMs for our payment-service builds" -- Configure CycloneDX SBOM generation with Cosign signing in the CI pipeline
  • "Enforce artifact signing for production deployments" -- Create OPA policy requiring valid Cosign signatures
  • "Set up SLSA Level 2 compliance tracking" -- Configure provenance tracking and SBOM attestation
  • "Block deployments with GPL-3.0 dependencies" -- Create supply chain policy with license restrictions
  • "Track our software supply chain risk" -- Enable SSCA dashboard with CVE, license, and staleness analysis

Performance Notes

  • SBOM generation adds 10-30 seconds to the build depending on dependency count -- acceptable for most pipelines.
  • Cosign keyless signing (Sigstore) is simpler to set up than KMS-backed keys but requires internet access.
  • SLSA Level 3 requires hermetic builds -- this may require significant pipeline restructuring.
  • SBOM storage costs are minimal (JSON files) but retention policies prevent unbounded growth.

Troubleshooting

SBOM Generation Failing

  • Verify the build tool is supported by the SBOM generator (Syft, Trivy, cdxgen)
  • Check that the container image is accessible at the point SBOM generation runs
  • For monorepos, ensure the SBOM scope is set to the correct subdirectory

Cosign Signing Errors

  • For keyless: verify the OIDC provider (Sigstore/Fulcio) is reachable
  • For KMS: verify the service account has signing permissions on the key
  • Check that the Cosign binary version is compatible with the image format

Policy Blocking Deployments

  • Check which specific policy rule is triggering the deny
  • Use the exemption workflow for known false positives
  • Verify the policy is evaluating the correct input fields from the pipeline

当前收录版本

1.0.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值92/100

亮点

  • 解决企业软件供应链安全核心痛点,支持 SBOM 生成、制品签名、SLSA 合规跟踪等高价值功能
  • 明确区分于其他 Skill(如 create-policy、security-report),避免功能重叠
触发精准95/100

亮点

  • 触发词覆盖全面且专业(SBOM、SLSA、Cosign、CycloneDX、SPDX),边界清晰
  • 明确排除 OPA 流水线治理和漏洞扫描场景,减少误触风险
结构规范90/100

亮点

  • 步骤划分清晰(Scope → Task → SBOM → Policy → Storage),含端到端示例和性能说明
  • frontmatter 完整,文档结构规范,易于理解和执行
执行可靠88/100

亮点

  • MCP 工具调用参数明确,覆盖 SBOM 生成、Cosign 签名、策略创建等关键流程
  • 提供详细的 Troubleshooting 指南,覆盖常见失败场景
证据可验 (前四项均值)91/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

来源文档未说明。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。