[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75JJZ07PXV0ND59RY4FHRX2":3,"skill-same:01M75JJZ07PXV0ND59RY4FHRX2":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":13,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M75JJZ07PXV0ND59RY4FHRX2","create-sbom",null,"Add an SBOM (Software Bill of Materials) generation step to an existing Harness pipeline using Harness SCS SscaOrchestration (SBOM Orchestration). Supports container images and code repositories. Sources: docker, ECR, GCR, GAR, ACR, Harness AR (har), repository, and local workspace. Syft or cdxgen, SPDX or CycloneDX, optional SBOM attestation. Only works with existing pipelines. Use when asked to create an SBOM, generate a bill of materials, add SBOM to a pipeline, scan a container image or repo for components, or set up SBOM Orchestration. Trigger phrases: create SBOM, generate SBOM, add SBOM step, SBOM for image, SBOM for repo, scan for dependencies, SBOM Orchestration, add Generate SBOM step.","AdmiralGallade\u002Fharness-repository","AdmiralGallade","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F59243621?v=4","01M759AG0891RDPWNGJBX1Y2TG","01M759AG10MS924J53ZWJ60AEC",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Fcreate-sbom\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: create-sbom\ndescription: >-\n  Add an SBOM (Software Bill of Materials) generation step to an existing Harness pipeline\n  using Harness SCS SscaOrchestration (SBOM Orchestration). Supports container images and code\n  repositories. Sources: docker, ECR, GCR, GAR, ACR, Harness AR (har), repository, and local workspace.\n  Syft or cdxgen, SPDX or CycloneDX, optional SBOM attestation.\n  Only works with existing pipelines. Use when asked to create an SBOM, generate a bill of\n  materials, add SBOM to a pipeline, scan a container image or repo for components, or set up\n  SBOM Orchestration.\n  Trigger phrases: create SBOM, generate SBOM, add SBOM step, SBOM for image, SBOM for repo,\n  scan for dependencies, SBOM Orchestration, add Generate SBOM step.\nmetadata:\n  author: Harness\n  version: 1.0.0\n  mcp-server: harness-mcp-v2\nlicense: Apache-2.0\ncompatibility: Requires Harness MCP v2 server (harness-mcp-v2)\n---\n\n# Create SBOM\n\nAdd an **SBOM Orchestration** (`SscaOrchestration`) step to an existing Harness pipeline for a\ncontainer image or code repository. This skill only works with **existing pipelines** — do not\ncreate standalone SBOM pipelines.\n\n**Supported stages:** SBOM Orchestration runs in **CI**, **CD** (`Deployment`), and **Security**\n(`Security`) stages. Show stage type in Phase 2 and offer placement options that match the stage\ntype (see `references\u002Finteractive-wizard-flow.md`).\n\nGuide the user through a **step-by-step interactive wizard** (same UX as `\u002Fconfigure-repo-scan`):\none decision per turn, recommended options marked, pipeline structure\nshown after fetch, then confirm before `harness_update`.\n\n- Wizard scripts: `references\u002Finteractive-wizard-flow.md`\n- UI ↔ YAML mapping: `references\u002Fsbom-orchestration-step.md`\n- CD containerized step groups: `references\u002Fcd-containerized-step-group.md`\n\n---\n\n## Interaction model (mandatory)\n\nFollow this UX for every invocation. **Do not** dump all Pipeline Studio fields in one message.\n\n1. **One question per turn** — use the `AskQuestion` tool when available. If unavailable, use a\n   numbered option list with `(Recommended)` on the default choice (same pattern as container scan).\n2. **Opening message** — briefly state the goal: add SBOM Orchestration to an existing pipeline.\n3. **Progress breadcrumb** — after pipeline fetch, show on each wizard turn:\n   `Pipeline · Placement · Method · Source · Details · Attestation · Submit`\n4. **Record answers** — keep a running summary of choices; do not re-ask unless the user changes direction.\n5. **Fetch before configure** — `harness_get` (URL or id) before placement\u002Fsource questions.\n6. **Show pipeline structure** — list stages and steps (Phase 2) before asking placement.\n7. **Infer, don’t assume** — suggest connector\u002Fsource from YAML; skip connector question if unambiguous.\n8. **Never guess image tags** — always ask for image or repo+branch in Phase 8.\n9. **Confirm before write** — Phase 10 summary + `harness_update` only after user confirms.\n10. **Stop after update** — after successful `harness_update`, provide a configuration summary and\n    point the user to `\u002Frun-pipeline` to execute. Do **not** call `harness_execute`, poll\n    executions, or run `harness_diagnose` in this skill (same pattern as `\u002Fconfigure-repo-scan`).\n11. **“Defaults” shortcut** — apply recommended wizard choices (see reference) but still ask for image\u002Frepo.\n12. **Phase 3 Placement is never optional** — always run Phase 2 (structure) then Phase 3\n    (`AskQuestion` for stage + position) **before** method\u002Fsource\u002Fattestation, even when:\n    - The pipeline has only one CI stage\n    - An `SscaOrchestration` step already exists in CI\n    - The user said “add SBOM to the pipeline” without naming a stage\n    - A prior chat configured the same pipeline (do **not** reuse that to skip Placement)\n13. **Never assume pipeline or stage from session history** — confirm pipeline URL\u002FID in Phase 0\u002F1\n    unless the user pasted it **in the current message**. Prior workspace context may inform\n    suggestions, not replace the wizard.\n14. **CD is a different placement path** — if the user chooses a `Deployment` stage (or asks for CD),\n    follow `references\u002Fcd-containerized-step-group.md` end to end (step group, `\u003C+artifact.image>`,\n    infra). Do not place CD SBOM under `execution.steps` at the stage top level.\n15. **CI-only pipeline + CD SBOM** — if Phase 2 shows **no** `Deployment` stage and the user wants\n    CD, run the **CD prerequisites** sub-flow (service, environment, infrastructure, K8s connector\n    for `stepGroupInfra`) before `harness_update`. See **CD edge case** below.\n\nFull phase prompts and option ids: `references\u002Finteractive-wizard-flow.md`.\n\n---\n\n## Instructions\n\n### Wizard phases (user-facing)\n\nRun in order. **Stop after each phase** until the user answers.\n\n| Phase | Breadcrumb | Action |\n|-------|------------|--------|\n| 0 | Pipeline | AskQuestion: pipeline URL ready? |\n| 1 | Pipeline | Collect URL or org\u002Fproject\u002Fid → `harness_get` |\n| 2 | Pipeline | Display pipeline structure (no question) |\n| 3 | Placement | **Mandatory** `AskQuestion`: target stage (CI \u002F Deployment \u002F Security) + position; see **CD edge case** if no Deploy stage |\n| 3b | Placement (CD only) | If no `Deployment` stage: service, environment, infra, `stepGroupInfra` connector — then add stage + SBOM |\n| 4 | Method | AskQuestion: Syft\u002FSPDX, CycloneDX, cdxgen, or ingestion |\n| 5 | Source | AskQuestion: source tile (Third-Party, HAR, Repository, Local) |\n| 6 | Source | AskQuestion: registry provider (Third-Party only) |\n| 7 | Details | AskQuestion: connector (skip if obvious from YAML) |\n| 8 | Details | Ask: image, repo URL, or local artifact (free text) |\n| 9 | Attestation | AskQuestion: attest or not; keyless vs cosign |\n| 10 | Submit | AskQuestion: confirm pipeline update |\n\nAfter Phase 10 `confirm` → generate YAML, insert step, `harness_update`, then provide summary (do not run the pipeline).\n\n### Supported stage types\n\n| Stage type (YAML) | Module | SBOM placement notes |\n|-------------------|--------|----------------------|\n| `CI` | CI | End of stage or after build\u002Fpush; repository source needs `cloneCodebase: true` + codebase |\n| `Deployment` | CD | Inside a **containerized step group** with `stepGroupInfra`; **before** deploy — see `references\u002Fcd-containerized-step-group.md` |\n| `Security` | STO \u002F SCS | End of `spec.execution.steps` (alongside other security steps) |\n\nWhen listing stages in Phase 2, include the stage **type** (`CI`, `Deployment`, `Security`, etc.).\nFor **Deployment** stages, label each `stepGroup` as **containerized** or **not** (presence of\n`stepGroupInfra`). In Phase 3, only offer placement options valid for the chosen stage (see wizard\nreference). **Never** insert `SscaOrchestration` at the top level of a CD stage `execution.steps`.\n\n### CD edge case (mandatory workflow)\n\nUse when Placement targets a **`Deployment`** stage, or the user wants SBOM at deploy time.\n\n#### Phase 2 — CI-only pipeline warning\n\nIf the pipeline has **only** `CI` (or `Security`) stages and **no** `type: Deployment` stage, print:\n\n> This pipeline has no CD Deploy stage yet. SBOM in CD must run in a **Deployment** stage inside a\n> **containerized step group** before the deploy step.\n\nThen **AskQuestion**: add a new Deploy stage, use a different pipeline URL, or keep SBOM in CI only.\nDo **not** default to the existing CI stage without asking.\n\n#### Phase 3 — Placement (always ask)\n\nEven with a single `Build` CI stage, ask:\n\n1. **Which stage?** — list every `CI`, `Deployment`, and `Security` stage by identifier.\n2. **Position in that stage?** — `ci_*`, `cd_*`, or `security_*` options per wizard reference.\n\nIf `SscaOrchestration` already exists in CI, include options such as:\n\n| Option | Meaning |\n|--------|---------|\n| Keep CI SBOM + add CD SBOM | New step (e.g. `generate_sbom_cd`) in Deploy stage |\n| CD only | User will remove or skip CI SBOM (confirm in Phase 10) |\n| Replace \u002F move | Rare — confirm source and target stages explicitly |\n\n#### Phase 3b — CD prerequisites (no Deploy stage yet)\n\nRun **one topic per turn** (`AskQuestion` where possible):\n\n| Step | Action |\n|------|--------|\n| Service | `harness_list` \u002F user pick → `serviceRef` (artifact connector drives registry SBOM connector) |\n| Environment | User pick → `environmentRef` |\n| Infrastructure | `harness_list` with `params: { environment_id: \"\u003Cenv>\" }`; if none, `harness_create` (`KubernetesDirect`) per `\u002Fcreate-infrastructure` — **never** omit `infrastructureDefinitions` on the Deploy stage |\n| Step group infra | `AskQuestion`: K8s cluster connector + namespace for `stepGroupInfra` (copy from stage infra when possible) |\n| Deploy step type | Default `K8sRollingDeploy` for `deploymentType: Kubernetes` services |\n\nAppend a new stage after CI (typical):\n\n```yaml\n- stage:\n    identifier: Deploy_Dev\n    name: Deploy Dev\n    type: Deployment\n    spec:\n      deploymentType: Kubernetes\n      service:\n        serviceRef: \u003Cservice_id>\n      environment:\n        environmentRef: \u003Cenvironment_id>\n        deployToAll: false\n        infrastructureDefinitions:\n          - identifier: \u003Cinfra_id>\n      execution:\n        steps:\n          - stepGroup:\n              identifier: scs_before_deploy\n              name: Supply Chain Security\n              stepGroupInfra:\n                type: KubernetesDirect\n                spec:\n                  connectorRef: \u003Ck8s_cluster_connector>\n                  namespace: \u003Cnamespace>\n              steps:\n                - step:\n                    identifier: generate_sbom_cd\n                    name: Generate SBOM\n                    type: SscaOrchestration\n                    # ... wizard spec; image: \u003C+artifact.image> for service artifacts ...\n          - step:\n              identifier: rolling_deployment\n              type: K8sRollingDeploy\n              spec:\n                skipDryRun: false\n              timeout: 10m\n      rollbackSteps:\n        - step:\n            identifier: rollback\n            type: K8sRollingRollback\n            spec: {}\n            timeout: 10m\n    failureStrategies:\n      - onFailure:\n          errors: [AllErrors]\n          action:\n            type: StageRollback\n```\n\nFull rules and examples: `references\u002Fcd-containerized-step-group.md`.\n\n#### CD step identifiers and image\n\n- Use a **unique** step id in CD (e.g. `generate_sbom_cd`) when CI already has `generate_sbom`.\n- **CD image:** prefer `\u003C+artifact.image>` from the service primary artifact; literal tags only if\n  the user provides them in Phase 8.\n- **Registry connector:** from `service.serviceDefinition.spec.artifacts` or existing CI SBOM step.\n\n### After the wizard — backend steps\n\n#### Extract connectors from pipeline YAML\n\n**Container \u002F Third-Party:** `connectorRef` or `connector` in `BuildAndPushDockerRegistry`, `Run`,\n`Plugin`, `StoAgent`, `SscaOrchestration`, `SscaArtifactSigning`.\n\n**Repository:** v0 `pipeline.properties.ci.codebase.connectorRef`; v1 codebase connector →\n`spec.overrideConnectorRef`.\n\nIf repository SBOM and no codebase connector → stop and explain. If container SBOM and no registry\nconnector → `harness_search` (connectors) or `\u002Fcreate-connector`.\n\n#### Generate SBOM step configuration\n\nUsing **only the options recorded in the wizard**, generate native `SscaOrchestration` YAML — not a\n`Run: syft` step. If the user chose the **defaults** shortcut, use Generation + Syft + SPDX +\nThird-Party\u002Fdocker + keyless attestation.\n\n**Third-Party — Docker Registry (default):**\n\n```yaml\n- step:\n    identifier: generate_sbom\n    name: Generate SBOM\n    type: SscaOrchestration\n    spec:\n      mode: generation\n      source:\n        type: docker\n        spec:\n          connector: \u003Cdocker_registry_connector_from_step_2>\n          image: \u003Crepo\u002Fname:tag_or_digest>\n      tool:\n        type: Syft\n        spec:\n          format: spdx-json\n      attestation:\n        type: keyless\n        spec:\n          oidcProvider: harness\n    timeout: 15m\n```\n\n**Repository:**\n\n```yaml\n- step:\n    identifier: generate_sbom\n    name: Generate SBOM\n    type: SscaOrchestration\n    spec:\n      mode: generation\n      overrideConnectorRef: \u003Cgit_connector_from_step_2>\n      source:\n        type: repository\n        spec:\n          url: \u003Cfull_repo_url>\n          variant_type: branch\n          variant: \u003Cbranch>\n      tool:\n        type: Syft\n        spec:\n          format: spdx-json\n      attestation:\n        type: keyless\n        spec:\n          oidcProvider: harness\n    timeout: 15m\n```\n\n**Amazon ECR (`source.type: ecr`):**\n\n```yaml\n      source:\n        type: ecr\n        spec:\n          connector: \u003Cregistry_connector>\n          image: \u003Crepo\u002Fname:tag_or_digest>\n          region: \u003Caws_region>\n          account: \u003Caws_account_id>\n```\n\n**Google GCR (`source.type: gcr`):**\n\n```yaml\n      source:\n        type: gcr\n        spec:\n          connector: \u003Cdocker_registry_connector>\n          host: gcr.io\n          project_id: \u003Cgcp_project_id>\n          image: \u003Crepo\u002Fname:tag_or_digest>\n```\n\n**Google GAR (`source.type: gar`):**\n\n```yaml\n      source:\n        type: gar\n        spec:\n          connector: \u003Cdocker_registry_connector>\n          host: \u003Cregion>-docker.pkg.dev\n          project_id: \u003Cgcp_project_id>\n          image: \u003Crepo\u002Fname:tag_or_digest>\n```\n\n**Azure ACR (`source.type: acr`):**\n\n```yaml\n      source:\n        type: acr\n        spec:\n          connector: \u003Cdocker_registry_connector>\n          image: \u003Cregistry>.azurecr.io\u002F\u003Crepo>:\u003Ctag>\n          subscription_id: \u003Cazure_subscription_id>\n```\n\n**Harness Artifact Registry (`source.type: har`):**\n\n```yaml\n      source:\n        type: har\n        spec:\n          registry: \u003Charness_artifact_registry_identifier>\n          image: \u003Cimage_name:tag_or_digest>\n```\n\n**Harness Local Stage (`source.type: local`):**\n\n```yaml\n      source:\n        type: local\n        spec:\n          artifact_name: \u003Cartifact_name>\n          workspace: \u003Coptional_workspace_path>\n          version: \u003Coptional_version>\n```\n\nUse when the artifact already exists in the stage workspace. For JAR\u002FHelm\u002Fnon-container artifacts\nwithout a registry image, users may need **ingestion** mode instead — see Harness ingest SBOM docs.\n\n**CycloneDX (when requested):** change `format` to `cyclonedx-json`.\n\n**No attestation (when requested):** omit the `attestation` block.\n\nFull UI mapping and notes: `references\u002Fsbom-orchestration-step.md`.\n\n**Image formatting (docker \u002F ecr \u002F gcr \u002F gar \u002F acr \u002F har):**\n- Docker Hub: `lavakush07\u002Fmyapp:v7` — no leading `\u002F`, no `https:\u002F\u002F`, no `docker.io\u002F` unless required\n- Use one `image` field for `docker` source — not split `url` + `variant`\n\n---\n\n#### Insert step into pipeline YAML\n\nInsert at the placement chosen in Phase 3. Ensure proper indentation.\n\n**Key rules:**\n- Insert only the new step — do not modify existing steps, variables, or failure strategies\n- **CI \u002F Security:** add under `stage.spec.execution.steps` (or inside a non-CD step group if user chose one)\n- **CD (Deployment):** **mandatory** — insert under `stepGroup.steps` of a containerized group (`stepGroupInfra` set). See `references\u002Fcd-containerized-step-group.md`\n- **CI + repository source:** ensure `cloneCodebase: true` and `properties.ci.codebase` on the CI stage\n- **CD placement:** before the deploy step; use artifact expressions for `image` when possible (`\u003C+artifact.image>`)\n- **CD — no containerized group:** create `cd_new_containerized_group` (new `stepGroup` + `stepGroupInfra`) or stop and instruct user — do not use top-level `execution.steps`\n- **Security:** append to stage `execution.steps`; registry or repository per source choice\n- Step identifier: `generate_sbom` in CI; use `generate_sbom_cd` (or suffix) in CD when CI already has `generate_sbom`\n\n**CD containerized step group (summary):**\n\n```yaml\n- stepGroup:\n    identifier: \u003Cscs_step_group_id>\n    name: Supply Chain Security\n    stepGroupInfra:\n      type: KubernetesDirect\n      spec:\n        connectorRef: \u003Ck8s_cluster_connector>\n        namespace: \u003Cnamespace>\n    steps:\n      - step:\n          identifier: generate_sbom\n          type: SscaOrchestration\n          # ... spec from wizard ...\n- step:\n    identifier: \u003Cdeploy_step>\n    type: K8sRollingDeploy   # unchanged; SBOM group must appear BEFORE this\n```\n\nCopy `stepGroupInfra` from an existing containerized group in the pipeline when possible.\n\nCreate the full updated pipeline YAML string.\n\n---\n\n#### Update pipeline via MCP\n\n```\nCall MCP tool: harness_update\nParameters:\n  resource_type: \"pipeline\"\n  resource_id: \"\u003Cpipeline_identifier>\"\n  org_id: \"\u003Corganization>\"\n  project_id: \"\u003Cproject>\"\n  body: { yamlPipeline: \"\u003Cupdated pipeline YAML string>\" }\n```\n\nOn validation errors, read the API message, fix the field, and retry.\n\n---\n\n#### Provide summary and next steps\n\nReport the results to the user (same pattern as `\u002Fconfigure-repo-scan` — do **not** execute the pipeline):\n\n```\n## SBOM Orchestration Configured\n\n**Pipeline:** \u003Cpipeline_name>\n**Step:** Generate SBOM (SscaOrchestration)\n**Location:** Stage \"\u003Cstage_name>\", \u003Cposition description>\n**Mode:** Generation\n**Source:** Third-Party → Docker Registry (or Repository \u002F HAR as configured)\n**Connector:** \u003Cconnector_identifier>\n**Image \u002F repo:** \u003Cimage_or_repo_url>\n**Tool \u002F format:** Syft \u002F SPDX (spdx-json)\n**Attestation:** Keyless (Harness OIDC) — or as configured\n\n**Pipeline URL:** https:\u002F\u002Fapp.harness.io\u002Fng\u002Faccount\u002F\u003Caccount_id>\u002Fmodule\u002Fci\u002Forgs\u002F\u003Corg_id>\u002Fprojects\u002F\u003Cproject_id>\u002Fpipelines\u002F\u003Cpipeline_id>\u002Fpipeline-studio\u002F\n\n**Note:** Review the SBOM Orchestration step in Pipeline Studio to adjust Advanced settings\n(resources, SBOM drift, expressions on image field).\n\n### Next Steps\n1. Run the pipeline via `\u002Frun-pipeline` to verify the SBOM Orchestration step executes successfully\n2. If the run fails, diagnose with `\u002Fdebug-pipeline`\n3. View the SBOM on the **Supply Chain** tab of the execution and in SCS **Artifacts**\n4. Download SBOM via Artifacts UI or [SBOM API](https:\u002F\u002Fapidocs.harness.io\u002Fsbom\u002Fdownloadsbomforartifact)\n5. Enforce SBOM policies via `\u002Fenforce-sbom` (pipeline step) and `\u002Fcreate-policy` (OPA rules)\n6. For automatic runs on push\u002FPR, add a trigger via `\u002Fcreate-trigger`\n```\n\n**CD pipelines:** note in the summary if runtime inputs (service artifact, environment, infrastructure)\nwill be required at run time — the user provides those via `\u002Frun-pipeline` or Harness UI Run.\n\n---\n\n## Examples\n\n### Add SBOM to existing CI pipeline (container)\n\n```\n\u002Fcreate-sbom\nAdd SBOM generation to my backend-api pipeline in the platform project for lavakush07\u002Fmyapp:v7\n```\n\n### Repository SBOM\n\n```\n\u002Fcreate-sbom\nAdd Generate SBOM to my PR pipeline — repository source, branch main\n```\n\n### SPDX + attestation defaults\n\n```\n\u002Fcreate-sbom\nConfigure SBOM Orchestration on ci-build-deploy after docker push — Syft, SPDX, keyless attest\n```\n\n### CycloneDX, no attestation\n\n```\n\u002Fcreate-sbom\nAdd SBOM step with CycloneDX only, no attestation\n```\n\n### CD Deploy stage (containerized step group)\n\n```\n\u002Fcreate-sbom\nAdd Generate SBOM to Deploy_Production before K8s rolling deploy — use artifact image expression\n```\n\n### CI-only pipeline — add SBOM in new CD stage\n\n```\n\u002Fcreate-sbom\nPipeline has only a Build CI stage — add a Deploy Dev stage with containerized Generate SBOM before K8s rolling deploy\n```\n\n### Placement must be explicit (anti-pattern)\n\n```\n\u002Fcreate-sbom\nadd the sbom step to the pipeline\n```\n\nAgent must still run Phase 2 + Phase 3 (stage picker), not assume CI or prior session config.\n\n---\n\n\n## Performance Notes\n\n- Only works with **existing pipelines** — do not offer to create new pipelines\n- **Wizard UX is mandatory** — one `AskQuestion` (or one numbered menu) per turn; see `references\u002Finteractive-wizard-flow.md`\n- **Phase 3 Placement is mandatory every invocation** — never skip because of one CI stage, existing SBOM, or prior chat context\n- **Do not assume pipeline\u002Fstage** from workspace history — confirm in Phase 0\u002F1 unless URL\u002FID is in the current user message\n- Do **not** paste the full Pipeline Studio checklist in a single message\n- `harness_get` once after Phase 1; show structure before Placement\n- Extract connectors from YAML; skip Phase 7 when unambiguous\n- **Defaults** shortcut: Syft + SPDX + Third-Party\u002Fdocker + keyless — still ask for image\u002Frepo in Phase 8\n- Container SBOM after image push; repository SBOM needs `cloneCodebase: true` + codebase\n- Never infer image tags from `Run` scripts\n- Use `source.type: docker` with `connector` + `image` — not legacy `url`\u002F`variant` on docker source\n- Run SBOM and SLSA attestation **sequentially**, not in parallel (Cosign registry race)\n- YAML per provider: `references\u002Fsbom-orchestration-step.md`\n- **Supported stages:** CI, CD (`Deployment`), Security — label types in Phase 2; filter Phase 3 options\n- **CD edge case:** SBOM only inside `stepGroup` with `stepGroupInfra`; CI-only → CD needs Phase 3b — `references\u002Fcd-containerized-step-group.md`\n- **Do not execute pipelines** in this skill — use `\u002Frun-pipeline` after configuration (same as `\u002Fconfigure-repo-scan`)\n\n---\n\n## Troubleshooting\n\n### Pipeline Not Found\n- Verify `org_id` and `project_id` are correct\n- Confirm the pipeline exists with `harness_list` (resource_type: `pipeline`)\n\n### Connector Not Found in Pipeline\n- **docker \u002F image \u002F ecr \u002F gcr \u002F gar \u002F acr:** search pipeline YAML for `connectorRef` or `harness_search` for registry connectors\n- **har:** user must provide Harness Artifact Registry identifier (`registry` field)\n- **repository:** set `properties.ci.codebase.connectorRef` (v0) or v1 codebase block\n- **local:** no registry connector — artifact must exist in workspace from a prior step\n\n### Wrong Source Type for Registry\n- Docker Hub \u002F generic registry → `docker` (not `ecr` unless image is in ECR)\n- ECR images → `ecr` + `region` + `account`\n- GCR vs GAR → `gcr` vs `gar` with correct `host` and `project_id`\n- ACR → `acr` + full image path under `.azurecr.io`\n\n### Image Not Found \u002F Invalid Reference\n- Symptom: `invalid reference format` or `skopeo fallback failed`\n- Use single `source.spec.image` — e.g. `lavakush07\u002Fmyapp:v7`, not `\u002Flavakush07\u002Fmyapp` or split fields\n\n### SBOM Attestation Failed (Keyless)\n- Harness OIDC requires Harness CI execution context\n- **non-harness:** SCS → Manage → Configuration → **Connector for Keyless Signing**\n- JFrog: connector needs `Read`, `Annotate`, `Create\u002FDeploy`, `Delete` for `.att` upload\n\n### Repo SBOM — 0 Components\n- `cloneCodebase: false` or missing `properties.ci.codebase` on CI stage\n\n### Pipeline Update Validation Errors\n- Step identifier pattern: `^[a-zA-Z_][0-9a-zA-Z_]{0,127}$`\n- Valid `source.type` and required `spec` fields per provider\n- `DUPLICATE_IDENTIFIER` — rename `generate_sbom`\n\n### No SBOM in Artifacts After Run\n- Confirm execution reached success on the SBOM Orchestration step\n- Check step logs; verify image exists in registry at scan time\n- List components later via `\u002Fsecurity-report` or `scs_artifact_component` MCP resources\n\n### MCP Errors\n- `CONNECTOR_NOT_FOUND` — verify connector identifier in Project Settings → Connectors\n- `ACCESS_DENIED` — PAT with pipeline edit permission\n\n### Skipped Placement \u002F Wrong Stage\n- Symptom: SBOM added to CI when user wanted CD (or vice versa)\n- Cause: agent skipped Phase 3 or assumed stage from prior session\n- Fix: re-run wizard from Phase 2; ask stage + `cd_*` vs `ci_*` placement; move step under CD `stepGroup.steps`\n\n### CD — infrastructureDefinitions Missing\n- Symptom: `infrastructureDefinitions or infrastructureDefinition should be present in stage`\n- Fix: add `environment.infrastructureDefinitions[].identifier` or create infra via `harness_create` (`\u002Fcreate-infrastructure`)\n\n### Pipeline Run Failed\n- Use `\u002Frun-pipeline` to execute and `\u002Fdebug-pipeline` to diagnose failures\n- **Bad credentials (codebase-sync):** fix Git connector on CI\u002Frepository SBOM pipelines\n- **Missing runtime inputs:** provide branch\u002Ftag or deploy inputs via `\u002Frun-pipeline` or Harness UI Run\n- **CD containerized:** SBOM must be under `stepGroup.steps` with `stepGroupInfra` (`KubernetesDirect` or `VM`) — not top-level `execution.steps`; see `references\u002Fcd-containerized-step-group.md`\n- **CD — no Initialize \u002F SSCA pod:** step group missing `stepGroupInfra` or container-based execution not enabled\n- **CD — wrong image:** use `\u003C+artifact.image>` (or expression from service artifact), not a stale literal tag\n- **Security stage:** confirm stage `type: Security` and artifact source matches prior steps (registry vs repo)\n","# Create SBOM\n\nAdd an **SBOM Orchestration** (`SscaOrchestration`) step to an existing Harness pipeline for a\ncontainer image or code repository. This skill only works with **existing pipelines** — do not\ncreate standalone SBOM pipelines.\n\n**Supported stages:** SBOM Orchestration runs in **CI**, **CD** (`Deployment`), and **Security**\n(`Security`) stages. Show stage type in Phase 2 and offer placement options that match the stage\ntype (see `references\u002Finteractive-wizard-flow.md`).\n\nGuide the user through a **step-by-step interactive wizard** (same UX as `\u002Fconfigure-repo-scan`):\none decision per turn, recommended options marked, pipeline structure\nshown after fetch, then confirm before `harness_update`.\n\n- Wizard scripts: `references\u002Finteractive-wizard-flow.md`\n- UI ↔ YAML mapping: `references\u002Fsbom-orchestration-step.md`\n- CD containerized step groups: `references\u002Fcd-containerized-step-group.md`\n\n---\n\n## Interaction model (mandatory)\n\nFollow this UX for every invocation. **Do not** dump all Pipeline Studio fields in one message.\n\n1. **One question per turn** — use the `AskQuestion` tool when available. If unavailable, use a\n   numbered option list with `(Recommended)` on the default choice (same pattern as container scan).\n2. **Opening message** — briefly state the goal: add SBOM Orchestration to an existing pipeline.\n3. **Progress breadcrumb** — after pipeline fetch, show on each wizard turn:\n   `Pipeline · Placement · Method · Source · Details · Attestation · Submit`\n4. **Record answers** — keep a running summary of choices; do not re-ask unless the user changes direction.\n5. **Fetch before configure** — `harness_get` (URL or id) before placement\u002Fsource questions.\n6. **Show pipeline structure** — list stages and steps (Phase 2) before asking placement.\n7. **Infer, don’t assume** — suggest connector\u002Fsource from YAML; skip connector question if unambiguous.\n8. **Never guess image tags** — always ask for image or repo+branch in Phase 8.\n9. **Confirm before write** — Phase 10 summary + `harness_update` only after user confirms.\n10. **Stop after update** — after successful `harness_update`, provide a configuration summary and\n    point the user to `\u002Frun-pipeline` to execute. Do **not** call `harness_execute`, poll\n    executions, or run `harness_diagnose` in this skill (same pattern as `\u002Fconfigure-repo-scan`).\n11. **“Defaults” shortcut** — apply recommended wizard choices (see reference) but still ask for image\u002Frepo.\n12. **Phase 3 Placement is never optional** — always run Phase 2 (structure) then Phase 3\n    (`AskQuestion` for stage + position) **before** method\u002Fsource\u002Fattestation, even when:\n    - The pipeline has only one CI stage\n    - An `SscaOrchestration` step already exists in CI\n    - The user said “add SBOM to the pipeline” without naming a stage\n    - A prior chat configured the same pipeline (do **not** reuse that to skip Placement)\n13. **Never assume pipeline or stage from session history** — confirm pipeline URL\u002FID in Phase 0\u002F1\n    unless the user pasted it **in the current message**. Prior workspace context may inform\n    suggestions, not replace the wizard.\n14. **CD is a different placement path** — if the user chooses a `Deployment` stage (or asks for CD),\n    follow `references\u002Fcd-containerized-step-group.md` end to end (step group, `\u003C+artifact.image>`,\n    infra). Do not place CD SBOM under `execution.steps` at the stage top level.\n15. **CI-only pipeline + CD SBOM** — if Phase 2 shows **no** `Deployment` stage and the user wants\n    CD, run the **CD prerequisites** sub-flow (service, environment, infrastructure, K8s connector\n    for `stepGroupInfra`) before `harness_update`. See **CD edge case** below.\n\nFull phase prompts and option ids: `references\u002Finteractive-wizard-flow.md`.\n\n---\n\n## Instructions\n\n### Wizard phases (user-facing)\n\nRun in order. **Stop after each phase** until the user answers.\n\n| Phase | Breadcrumb | Action |\n|-------|------------|--------|\n| 0 | Pipeline | AskQuestion: pipeline URL ready? |\n| 1 | Pipeline | Collect URL or org\u002Fproject\u002Fid → `harness_get` |\n| 2 | Pipeline | Display pipeline structure (no question) |\n| 3 | Placement | **Mandatory** `AskQuestion`: target stage (CI \u002F Deployment \u002F Security) + position; see **CD edge case** if no Deploy stage |\n| 3b | Placement (CD only) | If no `Deployment` stage: service, environment, infra, `stepGroupInfra` connector — then add stage + SBOM |\n| 4 | Method | AskQuestion: Syft\u002FSPDX, CycloneDX, cdxgen, or ingestion |\n| 5 | Source | AskQuestion: source tile (Third-Party, HAR, Repository, Local) |\n| 6 | Source | AskQuestion: registry provider (Third-Party only) |\n| 7 | Details | AskQuestion: connector (skip if obvious from YAML) |\n| 8 | Details | Ask: image, repo URL, or local artifact (free text) |\n| 9 | Attestation | AskQuestion: attest or not; keyless vs cosign |\n| 10 | Submit | AskQuestion: confirm pipeline update |\n\nAfter Phase 10 `confirm` → generate YAML, insert step, `harness_update`, then provide summary (do not run the pipeline).\n\n### Supported stage types\n\n| Stage type (YAML) | Module | SBOM placement notes |\n|-------------------|--------|----------------------|\n| `CI` | CI | End of stage or after build\u002Fpush; repository source needs `cloneCodebase: true` + codebase |\n| `Deployment` | CD | Inside a **containerized step group** with `stepGroupInfra`; **before** deploy — see `references\u002Fcd-containerized-step-group.md` |\n| `Security` | STO \u002F SCS | End of `spec.execution.steps` (alongside other security steps) |\n\nWhen listing stages in Phase 2, include the stage **type** (`CI`, `Deployment`, `Security`, etc.).\nFor **Deployment** stages, label each `stepGroup` as **containerized** or **not** (presence of\n`stepGroupInfra`). In Phase 3, only offer placement options valid for the chosen stage (see wizard\nreference). **Never** insert `SscaOrchestration` at the top level of a CD stage `execution.steps`.\n\n### CD edge case (mandatory workflow)\n\nUse when Placement targets a **`Deployment`** stage, or the user wants SBOM at deploy time.\n\n#### Phase 2 — CI-only pipeline warning\n\nIf the pipeline has **only** `CI` (or `Security`) stages and **no** `type: Deployment` stage, print:\n\n> This pipeline has no CD Deploy stage yet. SBOM in CD must run in a **Deployment** stage inside a\n> **containerized step group** before the deploy step.\n\nThen **AskQuestion**: add a new Deploy stage, use a different pipeline URL, or keep SBOM in CI only.\nDo **not** default to the existing CI stage without asking.\n\n#### Phase 3 — Placement (always ask)\n\nEven with a single `Build` CI stage, ask:\n\n1. **Which stage?** — list every `CI`, `Deployment`, and `Security` stage by identifier.\n2. **Position in that stage?** — `ci_*`, `cd_*`, or `security_*` options per wizard reference.\n\nIf `SscaOrchestration` already exists in CI, include options such as:\n\n| Option | Meaning |\n|--------|---------|\n| Keep CI SBOM + add CD SBOM | New step (e.g. `generate_sbom_cd`) in Deploy stage |\n| CD only | User will remove or skip CI SBOM (confirm in Phase 10) |\n| Replace \u002F move | Rare — confirm source and target stages explicitly |\n\n#### Phase 3b — CD prerequisites (no Deploy stage yet)\n\nRun **one topic per turn** (`AskQuestion` where possible):\n\n| Step | Action |\n|------|--------|\n| Service | `harness_list` \u002F user pick → `serviceRef` (artifact connector drives registry SBOM connector) |\n| Environment | User pick → `environmentRef` |\n| Infrastructure | `harness_list` with `params: { environment_id: \"\u003Cenv>\" }`; if none, `harness_create` (`KubernetesDirect`) per `\u002Fcreate-infrastructure` — **never** omit `infrastructureDefinitions` on the Deploy stage |\n| Step group infra | `AskQuestion`: K8s cluster connector + namespace for `stepGroupInfra` (copy from stage infra when possible) |\n| Deploy step type | Default `K8sRollingDeploy` for `deploymentType: Kubernetes` services |\n\nAppend a new stage after CI (typical):\n\n```yaml\n- stage:\n    identifier: Deploy_Dev\n    name: Deploy Dev\n    type: Deployment\n    spec:\n      deploymentType: Kubernetes\n      service:\n        serviceRef: \u003Cservice_id>\n      environment:\n        environmentRef: \u003Cenvironment_id>\n        deployToAll: false\n        infrastructureDefinitions:\n          - identifier: \u003Cinfra_id>\n      execution:\n        steps:\n          - stepGroup:\n              identifier: scs_before_deploy\n              name: Supply Chain Security\n              stepGroupInfra:\n                type: KubernetesDirect\n                spec:\n                  connectorRef: \u003Ck8s_cluster_connector>\n                  namespace: \u003Cnamespace>\n              steps:\n                - step:\n                    identifier: generate_sbom_cd\n                    name: Generate SBOM\n                    type: SscaOrchestration\n                    # ... wizard spec; image: \u003C+artifact.image> for service artifacts ...\n          - step:\n              identifier: rolling_deployment\n              type: K8sRollingDeploy\n              spec:\n                skipDryRun: false\n              timeout: 10m\n      rollbackSteps:\n        - step:\n            identifier: rollback\n            type: K8sRollingRollback\n            spec: {}\n            timeout: 10m\n    failureStrategies:\n      - onFailure:\n          errors: [AllErrors]\n          action:\n            type: StageRollback\n```\n\nFull rules and examples: `references\u002Fcd-containerized-step-group.md`.\n\n#### CD step identifiers and image\n\n- Use a **unique** step id in CD (e.g. `generate_sbom_cd`) when CI already has `generate_sbom`.\n- **CD image:** prefer `\u003C+artifact.image>` from the service primary artifact; literal tags only if\n  the user provides them in Phase 8.\n- **Registry connector:** from `service.serviceDefinition.spec.artifacts` or existing CI SBOM step.\n\n### After the wizard — backend steps\n\n#### Extract connectors from pipeline YAML\n\n**Container \u002F Third-Party:** `connectorRef` or `connector` in `BuildAndPushDockerRegistry`, `Run`,\n`Plugin`, `StoAgent`, `SscaOrchestration`, `SscaArtifactSigning`.\n\n**Repository:** v0 `pipeline.properties.ci.codebase.connectorRef`; v1 codebase connector →\n`spec.overrideConnectorRef`.\n\nIf repository SBOM and no codebase connector → stop and explain. If container SBOM and no registry\nconnector → `harness_search` (connectors) or `\u002Fcreate-connector`.\n\n#### Generate SBOM step configuration\n\nUsing **only the options recorded in the wizard**, generate native `SscaOrchestration` YAML — not a\n`Run: syft` step. If the user chose the **defaults** shortcut, use Generation + Syft + SPDX +\nThird-Party\u002Fdocker + keyless attestation.\n\n**Third-Party — Docker Registry (default):**\n\n```yaml\n- step:\n    identifier: generate_sbom\n    name: Generate SBOM\n    type: SscaOrchestration\n    spec:\n      mode: generation\n      source:\n        type: docker\n        spec:\n          connector: \u003Cdocker_registry_connector_from_step_2>\n          image: \u003Crepo\u002Fname:tag_or_digest>\n      tool:\n        type: Syft\n        spec:\n          format: spdx-json\n      attestation:\n        type: keyless\n        spec:\n          oidcProvider: harness\n    timeout: 15m\n```\n\n**Repository:**\n\n```yaml\n- step:\n    identifier: generate_sbom\n    name: Generate SBOM\n    type: SscaOrchestration\n    spec:\n      mode: generation\n      overrideConnectorRef: \u003Cgit_connector_from_step_2>\n      source:\n        type: repository\n        spec:\n          url: \u003Cfull_repo_url>\n          variant_type: branch\n          variant: \u003Cbranch>\n      tool:\n        type: Syft\n        spec:\n          format: spdx-json\n      attestation:\n        type: keyless\n        spec:\n          oidcProvider: harness\n    timeout: 15m\n```\n\n**Amazon ECR (`source.type: ecr`):**\n\n```yaml\n      source:\n        type: ecr\n        spec:\n          connector: \u003Cregistry_connector>\n          image: \u003Crepo\u002Fname:tag_or_digest>\n          region: \u003Caws_region>\n          account: \u003Caws_account_id>\n```\n\n**Google GCR (`source.type: gcr`):**\n\n```yaml\n      source:\n        type: gcr\n        spec:\n          connector: \u003Cdocker_registry_connector>\n          host: gcr.io\n          project_id: \u003Cgcp_project_id>\n          image: \u003Crepo\u002Fname:tag_or_digest>\n```\n\n**Google GAR (`source.type: gar`):**\n\n```yaml\n      source:\n        type: gar\n        spec:\n          connector: \u003Cdocker_registry_connector>\n          host: \u003Cregion>-docker.pkg.dev\n          project_id: \u003Cgcp_project_id>\n          image: \u003Crepo\u002Fname:tag_or_digest>\n```\n\n**Azure ACR (`source.type: acr`):**\n\n```yaml\n      source:\n        type: acr\n        spec:\n          connector: \u003Cdocker_registry_connector>\n          image: \u003Cregistry>.azurecr.io\u002F\u003Crepo>:\u003Ctag>\n          subscription_id: \u003Cazure_subscription_id>\n```\n\n**Harness Artifact Registry (`source.type: har`):**\n\n```yaml\n      source:\n        type: har\n        spec:\n          registry: \u003Charness_artifact_registry_identifier>\n          image: \u003Cimage_name:tag_or_digest>\n```\n\n**Harness Local Stage (`source.type: local`):**\n\n```yaml\n      source:\n        type: local\n        spec:\n          artifact_name: \u003Cartifact_name>\n          workspace: \u003Coptional_workspace_path>\n          version: \u003Coptional_version>\n```\n\nUse when the artifact already exists in the stage workspace. For JAR\u002FHelm\u002Fnon-container artifacts\nwithout a registry image, users may need **ingestion** mode instead — see Harness ingest SBOM docs.\n\n**CycloneDX (when requested):** change `format` to `cyclonedx-json`.\n\n**No attestation (when requested):** omit the `attestation` block.\n\nFull UI mapping and notes: `references\u002Fsbom-orchestration-step.md`.\n\n**Image formatting (docker \u002F ecr \u002F gcr \u002F gar \u002F acr \u002F har):**\n- Docker Hub: `lavakush07\u002Fmyapp:v7` — no leading `\u002F`, no `https:\u002F\u002F`, no `docker.io\u002F` unless required\n- Use one `image` field for `docker` source — not split `url` + `variant`\n\n---\n\n#### Insert step into pipeline YAML\n\nInsert at the placement chosen in Phase 3. Ensure proper indentation.\n\n**Key rules:**\n- Insert only the new step — do not modify existing steps, variables, or failure strategies\n- **CI \u002F Security:** add under `stage.spec.execution.steps` (or inside a non-CD step group if user chose one)\n- **CD (Deployment):** **mandatory** — insert under `stepGroup.steps` of a containerized group (`stepGroupInfra` set). See `references\u002Fcd-containerized-step-group.md`\n- **CI + repository source:** ensure `cloneCodebase: true` and `properties.ci.codebase` on the CI stage\n- **CD placement:** before the deploy step; use artifact expressions for `image` when possible (`\u003C+artifact.image>`)\n- **CD — no containerized group:** create `cd_new_containerized_group` (new `stepGroup` + `stepGroupInfra`) or stop and instruct user — do not use top-level `execution.steps`\n- **Security:** append to stage `execution.steps`; registry or repository per source choice\n- Step identifier: `generate_sbom` in CI; use `generate_sbom_cd` (or suffix) in CD when CI already has `generate_sbom`\n\n**CD containerized step group (summary):**\n\n```yaml\n- stepGroup:\n    identifier: \u003Cscs_step_group_id>\n    name: Supply Chain Security\n    stepGroupInfra:\n      type: KubernetesDirect\n      spec:\n        connectorRef: \u003Ck8s_cluster_connector>\n        namespace: \u003Cnamespace>\n    steps:\n      - step:\n          identifier: generate_sbom\n          type: SscaOrchestration\n          # ... spec from wizard ...\n- step:\n    identifier: \u003Cdeploy_step>\n    type: K8sRollingDeploy   # unchanged; SBOM group must appear BEFORE this\n```\n\nCopy `stepGroupInfra` from an existing containerized group in the pipeline when possible.\n\nCreate the full updated pipeline YAML string.\n\n---\n\n#### Update pipeline via MCP\n\n```\nCall MCP tool: harness_update\nParameters:\n  resource_type: \"pipeline\"\n  resource_id: \"\u003Cpipeline_identifier>\"\n  org_id: \"\u003Corganization>\"\n  project_id: \"\u003Cproject>\"\n  body: { yamlPipeline: \"\u003Cupdated pipeline YAML string>\" }\n```\n\nOn validation errors, read the API message, fix the field, and retry.\n\n---\n\n#### Provide summary and next steps\n\nReport the results to the user (same pattern as `\u002Fconfigure-repo-scan` — do **not** execute the pipeline):\n\n```\n## SBOM Orchestration Configured\n\n**Pipeline:** \u003Cpipeline_name>\n**Step:** Generate SBOM (SscaOrchestration)\n**Location:** Stage \"\u003Cstage_name>\", \u003Cposition description>\n**Mode:** Generation\n**Source:** Third-Party → Docker Registry (or Repository \u002F HAR as configured)\n**Connector:** \u003Cconnector_identifier>\n**Image \u002F repo:** \u003Cimage_or_repo_url>\n**Tool \u002F format:** Syft \u002F SPDX (spdx-json)\n**Attestation:** Keyless (Harness OIDC) — or as configured\n\n**Pipeline URL:** https:\u002F\u002Fapp.harness.io\u002Fng\u002Faccount\u002F\u003Caccount_id>\u002Fmodule\u002Fci\u002Forgs\u002F\u003Corg_id>\u002Fprojects\u002F\u003Cproject_id>\u002Fpipelines\u002F\u003Cpipeline_id>\u002Fpipeline-studio\u002F\n\n**Note:** Review the SBOM Orchestration step in Pipeline Studio to adjust Advanced settings\n(resources, SBOM drift, expressions on image field).\n\n### Next Steps\n1. Run the pipeline via `\u002Frun-pipeline` to verify the SBOM Orchestration step executes successfully\n2. If the run fails, diagnose with `\u002Fdebug-pipeline`\n3. View the SBOM on the **Supply Chain** tab of the execution and in SCS **Artifacts**\n4. Download SBOM via Artifacts UI or [SBOM API](https:\u002F\u002Fapidocs.harness.io\u002Fsbom\u002Fdownloadsbomforartifact)\n5. Enforce SBOM policies via `\u002Fenforce-sbom` (pipeline step) and `\u002Fcreate-policy` (OPA rules)\n6. For automatic runs on push\u002FPR, add a trigger via `\u002Fcreate-trigger`\n```\n\n**CD pipelines:** note in the summary if runtime inputs (service artifact, environment, infrastructure)\nwill be required at run time — the user provides those via `\u002Frun-pipeline` or Harness UI Run.\n\n---\n\n## Examples\n\n### Add SBOM to existing CI pipeline (container)\n\n```\n\u002Fcreate-sbom\nAdd SBOM generation to my backend-api pipeline in the platform project for lavakush07\u002Fmyapp:v7\n```\n\n### Repository SBOM\n\n```\n\u002Fcreate-sbom\nAdd Generate SBOM to my PR pipeline — repository source, branch main\n```\n\n### SPDX + attestation defaults\n\n```\n\u002Fcreate-sbom\nConfigure SBOM Orchestration on ci-build-deploy after docker push — Syft, SPDX, keyless attest\n```\n\n### CycloneDX, no attestation\n\n```\n\u002Fcreate-sbom\nAdd SBOM step with CycloneDX only, no attestation\n```\n\n### CD Deploy stage (containerized step group)\n\n```\n\u002Fcreate-sbom\nAdd Generate SBOM to Deploy_Production before K8s rolling deploy — use artifact image expression\n```\n\n### CI-only pipeline — add SBOM in new CD stage\n\n```\n\u002Fcreate-sbom\nPipeline has only a Build CI stage — add a Deploy Dev stage with containerized Generate SBOM before K8s rolling deploy\n```\n\n### Placement must be explicit (anti-pattern)\n\n```\n\u002Fcreate-sbom\nadd the sbom step to the pipeline\n```\n\nAgent must still run Phase 2 + Phase 3 (stage picker), not assume CI or prior session config.\n\n---\n\n\n## Performance Notes\n\n- Only works with **existing pipelines** — do not offer to create new pipelines\n- **Wizard UX is mandatory** — one `AskQuestion` (or one numbered menu) per turn; see `references\u002Finteractive-wizard-flow.md`\n- **Phase 3 Placement is mandatory every invocation** — never skip because of one CI stage, existing SBOM, or prior chat context\n- **Do not assume pipeline\u002Fstage** from workspace history — confirm in Phase 0\u002F1 unless URL\u002FID is in the current user message\n- Do **not** paste the full Pipeline Studio checklist in a single message\n- `harness_get` once after Phase 1; show structure before Placement\n- Extract connectors from YAML; skip Phase 7 when unambiguous\n- **Defaults** shortcut: Syft + SPDX + Third-Party\u002Fdocker + keyless — still ask for image\u002Frepo in Phase 8\n- Container SBOM after image push; repository SBOM needs `cloneCodebase: true` + codebase\n- Never infer image tags from `Run` scripts\n- Use `source.type: docker` with `connector` + `image` — not legacy `url`\u002F`variant` on docker source\n- Run SBOM and SLSA attestation **sequentially**, not in parallel (Cosign registry race)\n- YAML per provider: `references\u002Fsbom-orchestration-step.md`\n- **Supported stages:** CI, CD (`Deployment`), Security — label types in Phase 2; filter Phase 3 options\n- **CD edge case:** SBOM only inside `stepGroup` with `stepGroupInfra`; CI-only → CD needs Phase 3b — `references\u002Fcd-containerized-step-group.md`\n- **Do not execute pipelines** in this skill — use `\u002Frun-pipeline` after configuration (same as `\u002Fconfigure-repo-scan`)\n\n---\n\n## Troubleshooting\n\n### Pipeline Not Found\n- Verify `org_id` and `project_id` are correct\n- Confirm the pipeline exists with `harness_list` (resource_type: `pipeline`)\n\n### Connector Not Found in Pipeline\n- **docker \u002F image \u002F ecr \u002F gcr \u002F gar \u002F acr:** search pipeline YAML for `connectorRef` or `harness_search` for registry connectors\n- **har:** user must provide Harness Artifact Registry identifier (`registry` field)\n- **repository:** set `properties.ci.codebase.connectorRef` (v0) or v1 codebase block\n- **local:** no registry connector — artifact must exist in workspace from a prior step\n\n### Wrong Source Type for Registry\n- Docker Hub \u002F generic registry → `docker` (not `ecr` unless image is in ECR)\n- ECR images → `ecr` + `region` + `account`\n- GCR vs GAR → `gcr` vs `gar` with correct `host` and `project_id`\n- ACR → `acr` + full image path under `.azurecr.io`\n\n### Image Not Found \u002F Invalid Reference\n- Symptom: `invalid reference format` or `skopeo fallback failed`\n- Use single `source.spec.image` — e.g. `lavakush07\u002Fmyapp:v7`, not `\u002Flavakush07\u002Fmyapp` or split fields\n\n### SBOM Attestation Failed (Keyless)\n- Harness OIDC requires Harness CI execution context\n- **non-harness:** SCS → Manage → Configuration → **Connector for Keyless Signing**\n- JFrog: connector needs `Read`, `Annotate`, `Create\u002FDeploy`, `Delete` for `.att` upload\n\n### Repo SBOM — 0 Components\n- `cloneCodebase: false` or missing `properties.ci.codebase` on CI stage\n\n### Pipeline Update Validation Errors\n- Step identifier pattern: `^[a-zA-Z_][0-9a-zA-Z_]{0,127}$`\n- Valid `source.type` and required `spec` fields per provider\n- `DUPLICATE_IDENTIFIER` — rename `generate_sbom`\n\n### No SBOM in Artifacts After Run\n- Confirm execution reached success on the SBOM Orchestration step\n- Check step logs; verify image exists in registry at scan time\n- List components later via `\u002Fsecurity-report` or `scs_artifact_component` MCP resources\n\n### MCP Errors\n- `CONNECTOR_NOT_FOUND` — verify connector identifier in Project Settings → Connectors\n- `ACCESS_DENIED` — PAT with pipeline edit permission\n\n### Skipped Placement \u002F Wrong Stage\n- Symptom: SBOM added to CI when user wanted CD (or vice versa)\n- Cause: agent skipped Phase 3 or assumed stage from prior session\n- Fix: re-run wizard from Phase 2; ask stage + `cd_*` vs `ci_*` placement; move step under CD `stepGroup.steps`\n\n### CD — infrastructureDefinitions Missing\n- Symptom: `infrastructureDefinitions or infrastructureDefinition should be present in stage`\n- Fix: add `environment.infrastructureDefinitions[].identifier` or create infra via `harness_create` (`\u002Fcreate-infrastructure`)\n\n### Pipeline Run Failed\n- Use `\u002Frun-pipeline` to execute and `\u002Fdebug-pipeline` to diagnose failures\n- **Bad credentials (codebase-sync):** fix Git connector on CI\u002Frepository SBOM pipelines\n- **Missing runtime inputs:** provide branch\u002Ftag or deploy inputs via `\u002Frun-pipeline` or Harness UI Run\n- **CD containerized:** SBOM must be under `stepGroup.steps` with `stepGroupInfra` (`KubernetesDirect` or `VM`) — not top-level `execution.steps`; see `references\u002Fcd-containerized-step-group.md`\n- **CD — no Initialize \u002F SSCA pod:** step group missing `stepGroupInfra` or container-based execution not enabled\n- **CD — wrong image:** use `\u003C+artifact.image>` (or expression from service artifact), not a stale literal tag\n- **Security stage:** confirm stage `type: Security` and artifact source matches prior steps (registry vs repo)\n",{"name":5,"license":14,"metadata":23,"description":7,"compatibility":27},{"author":24,"version":25,"mcp-server":26},"Harness","1.0.0","harness-mcp-v2","Requires Harness MCP v2 server (harness-mcp-v2)","main","f3af6b6781621109871cca9e2989364afc509f3d","harnesses\u002Fharness-skills\u002Fskills\u002Fcreate-sbom","https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository","https:\u002F\u002Fgithub.com\u002FAdmiralGallade","Eager to learn!\r\nI'll do anything for more knowledge anywhere.","2026-06-06 07:34:31",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add AdmiralGallade\u002Fharness-repository --skill create-sbom",{"tool":41,"command":42},"bunx","bunx skills add AdmiralGallade\u002Fharness-repository --skill create-sbom",{"tool":44,"command":45},"pnpm","pnpm dlx skills add AdmiralGallade\u002Fharness-repository --skill create-sbom","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Fcreate-sbom\u002FSKILL.md",true,[49,55,59],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fcd-containerized-step-group.md","REFERENCE","参考文档",10158,"https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Fcreate-sbom\u002Freferences\u002Fcd-containerized-step-group.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Finteractive-wizard-flow.md",12064,"https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Fcreate-sbom\u002Freferences\u002Finteractive-wizard-flow.md",{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fsbom-orchestration-step.md",9029,"https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Fcreate-sbom\u002Freferences\u002Fsbom-orchestration-step.md",[64,71,78,85,92,99],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M75JSM6WGJ71BTHM6VC8CJ1X","verify-sign","Add an Artifact Verification (SscaArtifactVerification) step to an existing Harness pipeline to verify Cosign signatures on container or local-stage artifacts. Supports CI, Security, and CD Deploy (containerized step group). Supports Third-Party registries (Docker, ECR, GCR, GAR, ACR), Harness Artifact Registry (HAR), and Harness Local Stage artifacts. Only works with existing pipelines. Use when asked to verify signed artifacts, verify artifact signature, verify-sign, validate Cosign signature, or configure SscaArtifactVerification. Trigger phrases: verify sign, verify artifact, artifact verification, verify signature, verify-sign, SscaArtifactVerification, verify signed image, verify Cosign, HAR verification.","https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Fverify-sign\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M75JSDSTP77TFM3JFGBB8QKP","template-usage","Track Harness template dependencies, usage, and adoption via MCP v2 tools. Find which pipelines or other templates reference a given template, analyze update impact, identify unused templates, and compare version adoption. Use when asked about template usage, template references, template dependencies, impact analysis before updating a template, finding unused templates, or tracking template adoption across projects. Trigger phrases: template usage, who uses template, template references, template dependencies, template impact, unused templates, template adoption. Do NOT use for creating or updating templates (use create-template instead).","https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Ftemplate-usage\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M75JS76Q2KC8PD598H2DZZRA","sign-artifact","Add an Artifact Signing (SscaArtifactSigning) step to an existing Harness pipeline to Cosign-sign container or local-stage artifacts with keyless, key-based, or Vault signing. Supports Third-Party registries (Docker, ECR, GCR, GAR, ACR), Harness Artifact Registry (HAR), and Harness Local Stage artifacts. Place after image build\u002Fpush; optionally upload .sig to the registry. Only works with existing pipelines. Use when asked to sign artifacts, add artifact signing, Cosign sign image, attach signature to registry, or configure SscaArtifactSigning. Trigger phrases: sign artifact, artifact signing, sign image, Cosign sign, add signing step, SscaArtifactSigning, attach signature, sign container image, HAR signing.","https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Fsign-artifact\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M75JS16EEFFHA44EBNE8KWNT","sei-analytics","Advanced engineering analytics via Harness Software Engineering Insights (SEI) MCP. Configure sprint velocity and estimation accuracy tracking, engineering investment allocation breakdowns, sprint planning with capacity forecasts, and release readiness assessments. Use when asked about sprint analytics, investment allocation, sprint planning, capacity forecasting, or release readiness. Do NOT use for DORA metrics (use dora-metrics instead). Trigger phrases: sprint velocity, sprint analytics, investment allocation, capacity planning, sprint forecast, release readiness, engineering productivity, estimation accuracy, sprint planning, scope creep, code quality trends.","https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Fsei-analytics\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M75JRWE3X3E7V9JFQ4ENZYZM","security-report","Generate security compliance reports using Harness SCS and STO via MCP. Analyze vulnerabilities, SBOMs, and manage exemptions. Use when user says \"security report\", \"vulnerabilities\", \"SBOM\", \"security scan\", \"compliance check\", or asks about application security.","https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Fsecurity-report\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M75JRSFJSNZFZRFKX8MSPCS2","scorecard-review","Review service maturity scorecards and compliance using Harness IDP via MCP. Check production readiness, security, and documentation scores. Use when user says \"scorecard\", \"service maturity\", \"production readiness\", \"compliance score\", or asks about service health scores.","https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Fscorecard-review\u002FSKILL.md",[],[]]