[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75JSM6WGJ71BTHM6VC8CJ1X":3,"skill-same:01M75JSM6WGJ71BTHM6VC8CJ1X":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},"01M75JSM6WGJ71BTHM6VC8CJ1X","verify-sign",null,"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.","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\u002Fverify-sign\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: verify-sign\ndescription: >-\n  Add an Artifact Verification (SscaArtifactVerification) step to an existing Harness pipeline to\n  verify Cosign signatures on container or local-stage artifacts. Supports CI, Security, and CD\n  Deploy (containerized step group). Supports Third-Party registries (Docker, ECR, GCR, GAR, ACR),\n  Harness Artifact Registry (HAR), and Harness Local Stage artifacts. Only works with existing\n  pipelines. Use when asked to verify signed artifacts, verify artifact signature, verify-sign,\n  validate Cosign signature, or configure SscaArtifactVerification.\n  Trigger phrases: verify sign, verify artifact, artifact verification, verify signature, verify-sign,\n  SscaArtifactVerification, verify signed image, verify Cosign, HAR verification.\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# Verify Sign\n\nAdd an **Artifact Verification** (`SscaArtifactVerification`) step to an existing Harness pipeline.\nThe step verifies Cosign signatures on artifacts — typically immediately after `SscaArtifactSigning`.\n\nThis skill only works with **existing pipelines** — do not create standalone verification-only pipelines.\n\n**Prerequisites:** Artifact must already be signed (typically via `\u002Fsign-artifact` \u002F\n`SscaArtifactSigning`). Key-based verify requires the Cosign **public** key file secret matching the\nsigning private key (`\u002Fcreate-secret`). If signing did not upload `.sig` to the registry, Harness\npulls the signature from its database during verification.\n\n**Supported stages:** CI, Security, and CD (`Deployment` in containerized step group before deploy).\n\nGuide the user through a **step-by-step interactive wizard** (same UX as `\u002Fsign-artifact`):\n\n- Wizard: `references\u002Finteractive-wizard-flow.md`\n- UI ↔ YAML: `references\u002Fartifact-verification-step.md`\n- CD containerized step groups: `references\u002Fcd-containerized-step-group.md`\n\n---\n\n## Interaction model (mandatory)\n\n1. **One question per turn** — use `AskQuestion` when available; otherwise numbered options with `(Recommended)`.\n2. **Opening message** — add Artifact Verification; mention signing prerequisite + HAR support.\n3. **Progress breadcrumb** — after pipeline fetch:\n   `Pipeline · Placement · Source · Details · Verify · Submit`\n4. **Record answers** — running summary; do not re-ask unless the user changes direction.\n5. **Fetch before configure** — `harness_get` before placement\u002Fsource questions.\n6. **Show pipeline structure** — highlight `SscaArtifactSigning` and connectors.\n7. **Infer source from signing** — when one `SscaArtifactSigning` step exists, reuse its source. If\n   multiple exist, ask which step to mirror.\n8. **Never guess image tags** — default from signing step; ask if ambiguous.\n9. **Confirm before write** — 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. **CD on CI-only pipeline** — do not reject CD verify; run Phase 3b to add Deploy stage + containerized group.\n12. **Verify method must match signing** — keyless ↔ keyless, keybased\u002Fcosign ↔ public key from same key pair.\n13. **Offer all three source tiles** — Third-Party, **HAR**, and Harness Local Stage.\n14. **List all connectors in Phase 6** — same rules as `\u002Fsign-artifact`: `harness_list` with\n    `filters.type`, all scopes, `size: 100`, paginate; never hand-pick a subset. See wizard Phase 6.\n15. **List all infrastructure in Phase 3b** — `harness_list` per environment with\n    `filters.environment_id`; never show only the infra for one pre-selected environment.\n16. **CD image defaults to `\u003C+artifact.image>`** — for Deploy-stage verify, recommend the service\n    artifact expression over a static tag from signing. Warn when static image ≠ service default tag.\n17. **Preflight delegates before CD update** — `harness_list(resource_type=\"delegate\")` or\n    `harness_execute(test_connection)` on the K8s connector used in `stepGroupInfra`. Abort or warn if\n    `DELEGATE_NOT_AVAILABLE` is likely (connector has `delegateSelectors` with no active delegate).\n18. **CD Deploy stage YAML requirements** — new Deploy stages need `failureStrategies: StageRollback`,\n    `rollbackSteps` with `K8sRollingRollback` + `spec: {}`, and CI stages need `MarkAsFailure` when\n    missing. See `references\u002Fcd-containerized-step-group.md`.\n\nFull phase prompts: `references\u002Finteractive-wizard-flow.md`.\n\n---\n\n## Instructions\n\n### Wizard phases\n\n| Phase | Breadcrumb | Action |\n|-------|------------|--------|\n| 0 | Pipeline | AskQuestion: pipeline URL ready? |\n| 1 | Pipeline | Collect URL → `harness_get` |\n| 2 | Pipeline | Display structure; note missing `SscaArtifactSigning` |\n| 3 | Placement | AskQuestion: after signing, CD before deploy, etc. |\n| 3b | Placement (CD) | Service, env, infra, step group if new Deploy stage |\n| 4 | Source | Infer from signing or pick registry tile |\n| 5 | Source | Registry provider (Third-Party only) |\n| 6 | Details | Connector — list **all** via `harness_list` + `filters.type` (skip if obvious) |\n| 7 | Details | Image \u002F artifact fields (default from signing) |\n| 8 | Verify | AskQuestion: verify signature method |\n| 9 | Submit | AskQuestion: confirm pipeline update |\n\nAfter Phase 9 `confirm` → insert step, `harness_update`, then provide summary (do not run the pipeline).\n\n### Supported stage types\n\n| Stage type | Step `type` | Placement notes |\n|------------|-------------|-----------------|\n| `CI` | `SscaArtifactVerification` | **After** `SscaArtifactSigning` in the same stage |\n| `Deployment` | `SscaArtifactVerification` | Containerized step group; **before** deploy |\n| `Security` | `SscaArtifactVerification` | After signing when artifact is in registry |\n\n### CD edge case\n\nIf no `Deployment` stage and user chose CD verify:\n\n> No CD Deploy stage yet. We can add a **Deployment** stage with a **containerized step group** and\n> place **Artifact Verification** before deploy.\n\nRun Phase 3b (service, environment, infrastructure, `stepGroupInfra`) — see\n`references\u002Fcd-containerized-step-group.md`.\n\n#### Preflight before CD stage write\n\n1. **`harness_get`** the K8s connector used in `stepGroupInfra` — note `delegateSelectors`.\n2. **`harness_list(resource_type=\"delegate\")`** — confirm an **active** delegate matches required\n   selectors (e.g. `ssca-prod2-at`). Warn before `harness_update` if none match.\n3. **`harness_get(resource_type=\"service\")`** — note primary artifact tag; if user chose a static\n   verify image, warn when it differs from the service default.\n\n#### CD Deploy stage YAML (append to pipeline)\n\nWhen adding a new Deploy stage, include **all** required blocks (API rejects incomplete YAML):\n\n```yaml\n    - stage:\n        name: Deploy\n        identifier: Deploy\n        type: Deployment\n        spec:\n          deploymentType: Kubernetes\n          service:\n            serviceRef: \u003Cservice_id>\n          environment:\n            environmentRef: \u003Cenv_id>\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_connector>\n                      namespace: \u003Cnamespace>\n                  steps:\n                    - step:\n                        identifier: artifactverification_cd\n                        name: Artifact Verification\n                        type: SscaArtifactVerification\n                        spec:\n                          source:\n                            type: docker\n                            spec:\n                              connector: \u003Cregistry_connector>\n                              image: \u003C+artifact.image>\n                          verifySign:\n                            type: keyless\n                            spec:\n                              oidcProvider: harness\n                        timeout: 15m\n              - step:\n                  identifier: rolling_deployment\n                  name: Rolling Deployment\n                  type: K8sRollingDeploy\n                  spec:\n                    skipDryRun: false\n                  timeout: 10m\n            rollbackSteps:\n              - step:\n                  identifier: rollback\n                  name: Rollback\n                  type: K8sRollingRollback\n                  spec: {}\n                  timeout: 10m\n        failureStrategies:\n          - onFailure:\n              errors: [AllErrors]\n              action:\n                type: StageRollback\n```\n\nAlso ensure existing CI stages have `failureStrategies: MarkAsFailure` when missing.\n\n#### Check prerequisites\n\n1. **Artifact signing** — pipeline contains `SscaArtifactSigning` (or user confirms signature exists).\n2. **Public key secret** (key-based) — file secret with Cosign public key matching signing private key.\n\n#### Extract context from pipeline YAML\n\nFrom `SscaArtifactSigning` (if present), copy source and map signing → verification:\n\n| Signing | Verification |\n|---------|--------------|\n| `source.type: docker` | same `source.type: docker` |\n| `source.spec.image` | same `source.spec.image` |\n| `source.spec.connector` | same `source.spec.connector` |\n| `source.type: har` | same `source.type: har` + `registry` + `image` |\n| `signing.type: keyless` | `verifySign` keyless (match OIDC provider) |\n| `signing.type: cosign` \u002F `keybased` | `verifySign` with **public** key secret |\n\n#### Generate Artifact Verification step YAML\n\n**CI — Docker Registry, key-based verify (Harness docs):**\n\n```yaml\n- step:\n    identifier: artifactverification\n    name: Artifact Verification\n    type: SscaArtifactVerification\n    spec:\n      source:\n        type: docker\n        spec:\n          connector: lavakush07\n          image: lavakush07\u002Feasy-buggy-app:v5\n      verifySign:\n        type: cosign\n        spec:\n          public_key: account.cosign_public_key\n    timeout: 15m\n```\n\n**Keyless verify** (when signing used keyless Harness OIDC):\n\n```yaml\n      verifySign:\n        type: keyless\n        spec:\n          oidcProvider: harness\n```\n\nIf API validation rejects flat `keyless`, retry nested `cosign` wrapper — see\n`references\u002Fartifact-verification-step.md`.\n\n**HAR verify:**\n\n```yaml\n      source:\n        type: har\n        spec:\n          registry: prod_har\n          image: my-service:v3\n```\n\n**CD Deploy** — same step type inside containerized `stepGroup`; use `\u003C+artifact.image>` for `image`\nwhen verifying service artifacts.\n\nFull provider mapping: `references\u002Fartifact-verification-step.md`.\n\n#### Insert step into pipeline YAML\n\n**Critical:** Use the **exact** `yamlPipeline` from `harness_get` as the base. Insert or update **only**\n`SscaArtifactVerification` (and CD step group infra when applicable). **Never** add `HarnessSAST`, STO\nscanners, or other steps — signing\u002Fverification skills do not configure code scan.\n\n- Insert at Phase 3 placement — **after** `artifactsigning` when possible.\n- Do not modify unrelated steps.\n- Step identifier: `artifactverification` (use `artifactverification_cd` in CD when CI already has one).\n- **CD:** inside containerized step group only.\n\n#### Update pipeline via MCP\n\n```\nharness_update\n  resource_type: pipeline\n  resource_id: \u003Cpipeline_identifier>\n  org_id: \u003Corganization>\n  project_id: \u003Cproject>\n  body: { yamlPipeline: \"\u003Cupdated pipeline YAML>\" }\n```\n\nOn validation errors, check `verifySign` shape, `image` field, and public key secret refs.\n\n#### Provide summary\n\nReport the results to the user (same pattern as `\u002Fconfigure-repo-scan` — do **not** execute the pipeline):\n\n```\n## Artifact Verification Configured\n\n**Pipeline:** \u003Cpipeline_name>\n**Step:** Artifact Verification (SscaArtifactVerification)\n**Location:** Stage \"\u003Cstage_name>\", \u003Cposition>\n**Source:** docker — \u003Cconnector> — \u003Cimage>\n**Verify signature:** 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 Artifact Verification step in Pipeline Studio to adjust Advanced settings.\n\n### Next Steps\n1. Run the pipeline via `\u002Frun-pipeline` to verify artifact verification executes successfully\n2. If the run fails, diagnose with `\u002Fdebug-pipeline`\n3. View verification outcome on the execution **Supply Chain** tab\n4. If **Failed**, confirm verify method matches signing; check public key for keybased\n5. Add signing with `\u002Fsign-artifact` if signature was missing — ensure `uploadSignature.upload: true`\n6. Add SBOM\u002FSLSA if not present (`\u002Fmanage-supply-chain` or pipeline `SscaOrchestration` \u002F `provenance`)\n7. Automate with `\u002Fcreate-trigger`\n```\n\n**CD pipelines:** note in the summary if runtime inputs (service artifact, environment, infrastructure,\nartifact tag\u002Fdigest) will be required at run time — the user provides those via `\u002Frun-pipeline` or\nHarness UI Run. When running CI+CD, check `runtime_input_template` — service `primaryArtifactRef: \u003C+input>`\nmay need artifact tag\u002Fdigest in `inputs` even when the template only shows `build`.\n\n---\n\n## Examples\n\n### Verify after Artifact Signing\n\n```\n\u002Fverify-sign\nAdd artifact verification after artifactsigning — public key account.cosign_public_key\n```\n\n### CD before deploy\n\n```\n\u002Fverify-sign\nVerify signed artifact in deploy stage before K8s rolling deploy — keyless verify\n```\n\n### HAR verification\n\n```\n\u002Fverify-sign\nVerify signature for HAR image payment-service:v2 — same registry as signing step\n```\n\n### Keyless verify (matches keyless signing)\n\n```\n\u002Fverify-sign\nVerify with keyless Harness OIDC — same image as signing step\n```\n\n---\n\n## Performance Notes\n\n- Only **existing pipelines** (may append Deploy stage).\n- **Wizard UX mandatory** — one question per turn.\n- **Reuse signing source** — same lowercase `source.type` and `image` as `SscaArtifactSigning`.\n- **Field is `verifySign`** (camelCase) — not `verify_attestation` (SLSA) or `signing`.\n- **HAR is a first-class source** — `source.type: har`; offer even if UI shows only two tiles.\n- **CD verification supported** — containerized step group only; signing in Deploy is not supported.\n- **Do not execute pipelines** in this skill — use `\u002Frun-pipeline` after configuration (same as `\u002Fconfigure-repo-scan`).\n- Pair with `\u002Fsign-artifact` (sign) — verify method must match signing.\n\n---\n\n## Troubleshooting\n\n### No Artifact Signing Step\n- Add `\u002Fsign-artifact` first with signature upload or Harness DB signature storage.\n- Scan for `SscaArtifactSigning` or `identifier: artifactsigning`.\n\n### Signature Verification Failed\n- Verify method must match signing (`keyless` vs `keybased`\u002F`cosign`).\n- Keybased: use **public** key secret (signing uses **private** key).\n- If `.sig` not in registry, signing step may not have set `uploadSignature.upload: true` (Harness\n  default is unchecked). Update signing step and re-run, or rely on Harness DB signature storage.\n\n### Multiple Signing Steps\n- Ask user which `SscaArtifactSigning` step to mirror for source, image, and verify method.\n\n### Vault Verify Failed\n- Confirm Vault connector and public key path match the signing `secret-manager` block.\n\n### Wrong Image\n- CI: use same `image` as signing step `source.spec.image`.\n- CD: **default to** `\u003C+artifact.image>` — static signing tag (e.g. `:v5`) may not match service\n  artifact (e.g. `:v24`) and verification will fail or verify the wrong image.\n\n### CD Deploy Failed — No Delegate (`DELEGATE_NOT_AVAILABLE`)\n- Symptom: Deploy fails immediately; message mentions missing delegate or selector mismatch\n  (e.g. `Delegate(s) don't have selectors [ssca-prod2-at]`).\n- Fix: start a delegate with matching selectors (`\u002Fmanage-delegates`), or pick infra\u002FK8s connector\n  backed by an active delegate. Re-run after delegate is healthy.\n\n### CD YAML Validation Errors (new Deploy stage)\n- `failureStrategies: is missing` — add `StageRollback` on the Deploy stage.\n- `rollbackSteps[0].step.spec: is missing` — `K8sRollingRollback` requires `spec: {}`.\n- See full template in `references\u002Fcd-containerized-step-group.md`.\n\n### YAML Validation Errors\n- Step `type` must be `SscaArtifactVerification`.\n- Docker source requires `connector` + `image` (not `repo` or `image_path`).\n- `verifySign`: prefer flat `type: keyless`; keybased uses `type: cosign` + `public_key`.\n- `DUPLICATE_IDENTIFIER` — rename `artifactverification`.\n\n### CD Step Errors\n- Place inside `stepGroup` with `stepGroupInfra` — not top-level `execution.steps`.\n- See `references\u002Fcd-containerized-step-group.md`.\n\n### User Chose CD on CI-Only Pipeline\n- Expected — run Phase 3b; do not force CI-only unless user changes direction.\n\n### Incomplete connector \u002F infrastructure list\n- Use `harness_list` + `filters: { type: \"DockerRegistry\" }` (not `harness_search` or\n  `params.filterType`). Query project, org, and account scopes. For infrastructure, list per\n  environment with `filters: { environment_id: \"\u003Cenv>\" }` — see wizard Phase 3b and Phase 6.\n\n### Pipeline Run Failed\n- Use `\u002Frun-pipeline` to execute and `\u002Fdebug-pipeline` to diagnose failures\n- Missing runtime inputs: provide branch\u002Ftag, artifact tag\u002Fdigest, or deploy inputs via `\u002Frun-pipeline` or Harness UI Run\n\n### MCP Errors\n- `CONNECTOR_NOT_FOUND` — verify connector in Project Settings; re-run scoped `harness_list`.\n- `ACCESS_DENIED` — PAT needs pipeline edit permission.\n- **`harness_update` timeout** — retry once; provide YAML for manual paste if MCP keeps timing out.\n","# Verify Sign\n\nAdd an **Artifact Verification** (`SscaArtifactVerification`) step to an existing Harness pipeline.\nThe step verifies Cosign signatures on artifacts — typically immediately after `SscaArtifactSigning`.\n\nThis skill only works with **existing pipelines** — do not create standalone verification-only pipelines.\n\n**Prerequisites:** Artifact must already be signed (typically via `\u002Fsign-artifact` \u002F\n`SscaArtifactSigning`). Key-based verify requires the Cosign **public** key file secret matching the\nsigning private key (`\u002Fcreate-secret`). If signing did not upload `.sig` to the registry, Harness\npulls the signature from its database during verification.\n\n**Supported stages:** CI, Security, and CD (`Deployment` in containerized step group before deploy).\n\nGuide the user through a **step-by-step interactive wizard** (same UX as `\u002Fsign-artifact`):\n\n- Wizard: `references\u002Finteractive-wizard-flow.md`\n- UI ↔ YAML: `references\u002Fartifact-verification-step.md`\n- CD containerized step groups: `references\u002Fcd-containerized-step-group.md`\n\n---\n\n## Interaction model (mandatory)\n\n1. **One question per turn** — use `AskQuestion` when available; otherwise numbered options with `(Recommended)`.\n2. **Opening message** — add Artifact Verification; mention signing prerequisite + HAR support.\n3. **Progress breadcrumb** — after pipeline fetch:\n   `Pipeline · Placement · Source · Details · Verify · Submit`\n4. **Record answers** — running summary; do not re-ask unless the user changes direction.\n5. **Fetch before configure** — `harness_get` before placement\u002Fsource questions.\n6. **Show pipeline structure** — highlight `SscaArtifactSigning` and connectors.\n7. **Infer source from signing** — when one `SscaArtifactSigning` step exists, reuse its source. If\n   multiple exist, ask which step to mirror.\n8. **Never guess image tags** — default from signing step; ask if ambiguous.\n9. **Confirm before write** — 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. **CD on CI-only pipeline** — do not reject CD verify; run Phase 3b to add Deploy stage + containerized group.\n12. **Verify method must match signing** — keyless ↔ keyless, keybased\u002Fcosign ↔ public key from same key pair.\n13. **Offer all three source tiles** — Third-Party, **HAR**, and Harness Local Stage.\n14. **List all connectors in Phase 6** — same rules as `\u002Fsign-artifact`: `harness_list` with\n    `filters.type`, all scopes, `size: 100`, paginate; never hand-pick a subset. See wizard Phase 6.\n15. **List all infrastructure in Phase 3b** — `harness_list` per environment with\n    `filters.environment_id`; never show only the infra for one pre-selected environment.\n16. **CD image defaults to `\u003C+artifact.image>`** — for Deploy-stage verify, recommend the service\n    artifact expression over a static tag from signing. Warn when static image ≠ service default tag.\n17. **Preflight delegates before CD update** — `harness_list(resource_type=\"delegate\")` or\n    `harness_execute(test_connection)` on the K8s connector used in `stepGroupInfra`. Abort or warn if\n    `DELEGATE_NOT_AVAILABLE` is likely (connector has `delegateSelectors` with no active delegate).\n18. **CD Deploy stage YAML requirements** — new Deploy stages need `failureStrategies: StageRollback`,\n    `rollbackSteps` with `K8sRollingRollback` + `spec: {}`, and CI stages need `MarkAsFailure` when\n    missing. See `references\u002Fcd-containerized-step-group.md`.\n\nFull phase prompts: `references\u002Finteractive-wizard-flow.md`.\n\n---\n\n## Instructions\n\n### Wizard phases\n\n| Phase | Breadcrumb | Action |\n|-------|------------|--------|\n| 0 | Pipeline | AskQuestion: pipeline URL ready? |\n| 1 | Pipeline | Collect URL → `harness_get` |\n| 2 | Pipeline | Display structure; note missing `SscaArtifactSigning` |\n| 3 | Placement | AskQuestion: after signing, CD before deploy, etc. |\n| 3b | Placement (CD) | Service, env, infra, step group if new Deploy stage |\n| 4 | Source | Infer from signing or pick registry tile |\n| 5 | Source | Registry provider (Third-Party only) |\n| 6 | Details | Connector — list **all** via `harness_list` + `filters.type` (skip if obvious) |\n| 7 | Details | Image \u002F artifact fields (default from signing) |\n| 8 | Verify | AskQuestion: verify signature method |\n| 9 | Submit | AskQuestion: confirm pipeline update |\n\nAfter Phase 9 `confirm` → insert step, `harness_update`, then provide summary (do not run the pipeline).\n\n### Supported stage types\n\n| Stage type | Step `type` | Placement notes |\n|------------|-------------|-----------------|\n| `CI` | `SscaArtifactVerification` | **After** `SscaArtifactSigning` in the same stage |\n| `Deployment` | `SscaArtifactVerification` | Containerized step group; **before** deploy |\n| `Security` | `SscaArtifactVerification` | After signing when artifact is in registry |\n\n### CD edge case\n\nIf no `Deployment` stage and user chose CD verify:\n\n> No CD Deploy stage yet. We can add a **Deployment** stage with a **containerized step group** and\n> place **Artifact Verification** before deploy.\n\nRun Phase 3b (service, environment, infrastructure, `stepGroupInfra`) — see\n`references\u002Fcd-containerized-step-group.md`.\n\n#### Preflight before CD stage write\n\n1. **`harness_get`** the K8s connector used in `stepGroupInfra` — note `delegateSelectors`.\n2. **`harness_list(resource_type=\"delegate\")`** — confirm an **active** delegate matches required\n   selectors (e.g. `ssca-prod2-at`). Warn before `harness_update` if none match.\n3. **`harness_get(resource_type=\"service\")`** — note primary artifact tag; if user chose a static\n   verify image, warn when it differs from the service default.\n\n#### CD Deploy stage YAML (append to pipeline)\n\nWhen adding a new Deploy stage, include **all** required blocks (API rejects incomplete YAML):\n\n```yaml\n    - stage:\n        name: Deploy\n        identifier: Deploy\n        type: Deployment\n        spec:\n          deploymentType: Kubernetes\n          service:\n            serviceRef: \u003Cservice_id>\n          environment:\n            environmentRef: \u003Cenv_id>\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_connector>\n                      namespace: \u003Cnamespace>\n                  steps:\n                    - step:\n                        identifier: artifactverification_cd\n                        name: Artifact Verification\n                        type: SscaArtifactVerification\n                        spec:\n                          source:\n                            type: docker\n                            spec:\n                              connector: \u003Cregistry_connector>\n                              image: \u003C+artifact.image>\n                          verifySign:\n                            type: keyless\n                            spec:\n                              oidcProvider: harness\n                        timeout: 15m\n              - step:\n                  identifier: rolling_deployment\n                  name: Rolling Deployment\n                  type: K8sRollingDeploy\n                  spec:\n                    skipDryRun: false\n                  timeout: 10m\n            rollbackSteps:\n              - step:\n                  identifier: rollback\n                  name: Rollback\n                  type: K8sRollingRollback\n                  spec: {}\n                  timeout: 10m\n        failureStrategies:\n          - onFailure:\n              errors: [AllErrors]\n              action:\n                type: StageRollback\n```\n\nAlso ensure existing CI stages have `failureStrategies: MarkAsFailure` when missing.\n\n#### Check prerequisites\n\n1. **Artifact signing** — pipeline contains `SscaArtifactSigning` (or user confirms signature exists).\n2. **Public key secret** (key-based) — file secret with Cosign public key matching signing private key.\n\n#### Extract context from pipeline YAML\n\nFrom `SscaArtifactSigning` (if present), copy source and map signing → verification:\n\n| Signing | Verification |\n|---------|--------------|\n| `source.type: docker` | same `source.type: docker` |\n| `source.spec.image` | same `source.spec.image` |\n| `source.spec.connector` | same `source.spec.connector` |\n| `source.type: har` | same `source.type: har` + `registry` + `image` |\n| `signing.type: keyless` | `verifySign` keyless (match OIDC provider) |\n| `signing.type: cosign` \u002F `keybased` | `verifySign` with **public** key secret |\n\n#### Generate Artifact Verification step YAML\n\n**CI — Docker Registry, key-based verify (Harness docs):**\n\n```yaml\n- step:\n    identifier: artifactverification\n    name: Artifact Verification\n    type: SscaArtifactVerification\n    spec:\n      source:\n        type: docker\n        spec:\n          connector: lavakush07\n          image: lavakush07\u002Feasy-buggy-app:v5\n      verifySign:\n        type: cosign\n        spec:\n          public_key: account.cosign_public_key\n    timeout: 15m\n```\n\n**Keyless verify** (when signing used keyless Harness OIDC):\n\n```yaml\n      verifySign:\n        type: keyless\n        spec:\n          oidcProvider: harness\n```\n\nIf API validation rejects flat `keyless`, retry nested `cosign` wrapper — see\n`references\u002Fartifact-verification-step.md`.\n\n**HAR verify:**\n\n```yaml\n      source:\n        type: har\n        spec:\n          registry: prod_har\n          image: my-service:v3\n```\n\n**CD Deploy** — same step type inside containerized `stepGroup`; use `\u003C+artifact.image>` for `image`\nwhen verifying service artifacts.\n\nFull provider mapping: `references\u002Fartifact-verification-step.md`.\n\n#### Insert step into pipeline YAML\n\n**Critical:** Use the **exact** `yamlPipeline` from `harness_get` as the base. Insert or update **only**\n`SscaArtifactVerification` (and CD step group infra when applicable). **Never** add `HarnessSAST`, STO\nscanners, or other steps — signing\u002Fverification skills do not configure code scan.\n\n- Insert at Phase 3 placement — **after** `artifactsigning` when possible.\n- Do not modify unrelated steps.\n- Step identifier: `artifactverification` (use `artifactverification_cd` in CD when CI already has one).\n- **CD:** inside containerized step group only.\n\n#### Update pipeline via MCP\n\n```\nharness_update\n  resource_type: pipeline\n  resource_id: \u003Cpipeline_identifier>\n  org_id: \u003Corganization>\n  project_id: \u003Cproject>\n  body: { yamlPipeline: \"\u003Cupdated pipeline YAML>\" }\n```\n\nOn validation errors, check `verifySign` shape, `image` field, and public key secret refs.\n\n#### Provide summary\n\nReport the results to the user (same pattern as `\u002Fconfigure-repo-scan` — do **not** execute the pipeline):\n\n```\n## Artifact Verification Configured\n\n**Pipeline:** \u003Cpipeline_name>\n**Step:** Artifact Verification (SscaArtifactVerification)\n**Location:** Stage \"\u003Cstage_name>\", \u003Cposition>\n**Source:** docker — \u003Cconnector> — \u003Cimage>\n**Verify signature:** 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 Artifact Verification step in Pipeline Studio to adjust Advanced settings.\n\n### Next Steps\n1. Run the pipeline via `\u002Frun-pipeline` to verify artifact verification executes successfully\n2. If the run fails, diagnose with `\u002Fdebug-pipeline`\n3. View verification outcome on the execution **Supply Chain** tab\n4. If **Failed**, confirm verify method matches signing; check public key for keybased\n5. Add signing with `\u002Fsign-artifact` if signature was missing — ensure `uploadSignature.upload: true`\n6. Add SBOM\u002FSLSA if not present (`\u002Fmanage-supply-chain` or pipeline `SscaOrchestration` \u002F `provenance`)\n7. Automate with `\u002Fcreate-trigger`\n```\n\n**CD pipelines:** note in the summary if runtime inputs (service artifact, environment, infrastructure,\nartifact tag\u002Fdigest) will be required at run time — the user provides those via `\u002Frun-pipeline` or\nHarness UI Run. When running CI+CD, check `runtime_input_template` — service `primaryArtifactRef: \u003C+input>`\nmay need artifact tag\u002Fdigest in `inputs` even when the template only shows `build`.\n\n---\n\n## Examples\n\n### Verify after Artifact Signing\n\n```\n\u002Fverify-sign\nAdd artifact verification after artifactsigning — public key account.cosign_public_key\n```\n\n### CD before deploy\n\n```\n\u002Fverify-sign\nVerify signed artifact in deploy stage before K8s rolling deploy — keyless verify\n```\n\n### HAR verification\n\n```\n\u002Fverify-sign\nVerify signature for HAR image payment-service:v2 — same registry as signing step\n```\n\n### Keyless verify (matches keyless signing)\n\n```\n\u002Fverify-sign\nVerify with keyless Harness OIDC — same image as signing step\n```\n\n---\n\n## Performance Notes\n\n- Only **existing pipelines** (may append Deploy stage).\n- **Wizard UX mandatory** — one question per turn.\n- **Reuse signing source** — same lowercase `source.type` and `image` as `SscaArtifactSigning`.\n- **Field is `verifySign`** (camelCase) — not `verify_attestation` (SLSA) or `signing`.\n- **HAR is a first-class source** — `source.type: har`; offer even if UI shows only two tiles.\n- **CD verification supported** — containerized step group only; signing in Deploy is not supported.\n- **Do not execute pipelines** in this skill — use `\u002Frun-pipeline` after configuration (same as `\u002Fconfigure-repo-scan`).\n- Pair with `\u002Fsign-artifact` (sign) — verify method must match signing.\n\n---\n\n## Troubleshooting\n\n### No Artifact Signing Step\n- Add `\u002Fsign-artifact` first with signature upload or Harness DB signature storage.\n- Scan for `SscaArtifactSigning` or `identifier: artifactsigning`.\n\n### Signature Verification Failed\n- Verify method must match signing (`keyless` vs `keybased`\u002F`cosign`).\n- Keybased: use **public** key secret (signing uses **private** key).\n- If `.sig` not in registry, signing step may not have set `uploadSignature.upload: true` (Harness\n  default is unchecked). Update signing step and re-run, or rely on Harness DB signature storage.\n\n### Multiple Signing Steps\n- Ask user which `SscaArtifactSigning` step to mirror for source, image, and verify method.\n\n### Vault Verify Failed\n- Confirm Vault connector and public key path match the signing `secret-manager` block.\n\n### Wrong Image\n- CI: use same `image` as signing step `source.spec.image`.\n- CD: **default to** `\u003C+artifact.image>` — static signing tag (e.g. `:v5`) may not match service\n  artifact (e.g. `:v24`) and verification will fail or verify the wrong image.\n\n### CD Deploy Failed — No Delegate (`DELEGATE_NOT_AVAILABLE`)\n- Symptom: Deploy fails immediately; message mentions missing delegate or selector mismatch\n  (e.g. `Delegate(s) don't have selectors [ssca-prod2-at]`).\n- Fix: start a delegate with matching selectors (`\u002Fmanage-delegates`), or pick infra\u002FK8s connector\n  backed by an active delegate. Re-run after delegate is healthy.\n\n### CD YAML Validation Errors (new Deploy stage)\n- `failureStrategies: is missing` — add `StageRollback` on the Deploy stage.\n- `rollbackSteps[0].step.spec: is missing` — `K8sRollingRollback` requires `spec: {}`.\n- See full template in `references\u002Fcd-containerized-step-group.md`.\n\n### YAML Validation Errors\n- Step `type` must be `SscaArtifactVerification`.\n- Docker source requires `connector` + `image` (not `repo` or `image_path`).\n- `verifySign`: prefer flat `type: keyless`; keybased uses `type: cosign` + `public_key`.\n- `DUPLICATE_IDENTIFIER` — rename `artifactverification`.\n\n### CD Step Errors\n- Place inside `stepGroup` with `stepGroupInfra` — not top-level `execution.steps`.\n- See `references\u002Fcd-containerized-step-group.md`.\n\n### User Chose CD on CI-Only Pipeline\n- Expected — run Phase 3b; do not force CI-only unless user changes direction.\n\n### Incomplete connector \u002F infrastructure list\n- Use `harness_list` + `filters: { type: \"DockerRegistry\" }` (not `harness_search` or\n  `params.filterType`). Query project, org, and account scopes. For infrastructure, list per\n  environment with `filters: { environment_id: \"\u003Cenv>\" }` — see wizard Phase 3b and Phase 6.\n\n### Pipeline Run Failed\n- Use `\u002Frun-pipeline` to execute and `\u002Fdebug-pipeline` to diagnose failures\n- Missing runtime inputs: provide branch\u002Ftag, artifact tag\u002Fdigest, or deploy inputs via `\u002Frun-pipeline` or Harness UI Run\n\n### MCP Errors\n- `CONNECTOR_NOT_FOUND` — verify connector in Project Settings; re-run scoped `harness_list`.\n- `ACCESS_DENIED` — PAT needs pipeline edit permission.\n- **`harness_update` timeout** — retry once; provide YAML for manual paste if MCP keeps timing out.\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\u002Fverify-sign","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 verify-sign",{"tool":41,"command":42},"bunx","bunx skills add AdmiralGallade\u002Fharness-repository --skill verify-sign",{"tool":44,"command":45},"pnpm","pnpm dlx skills add AdmiralGallade\u002Fharness-repository --skill verify-sign","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Fverify-sign\u002FSKILL.md",true,[49,55,59],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fartifact-verification-step.md","REFERENCE","参考文档",5940,"https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Fverify-sign\u002Freferences\u002Fartifact-verification-step.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fcd-containerized-step-group.md",5254,"https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Fverify-sign\u002Freferences\u002Fcd-containerized-step-group.md",{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Finteractive-wizard-flow.md",6094,"https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Fverify-sign\u002Freferences\u002Finteractive-wizard-flow.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},"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":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},"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":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},"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":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},"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":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},"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",[],[],{"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},"01M75JRJX6GTAD1FEKWMQA73CE","run-pipeline","Execute and monitor Harness pipeline runs via MCP tools. Find pipelines, provide runtime inputs, trigger executions, monitor progress, handle approvals, retry failures, and abort running or stuck executions. Use when asked to run a pipeline, execute a deployment, trigger a build, start a pipeline, deploy a service, check execution status, approve a pipeline, or abort\u002Fstop\u002Finterrupt executions. Trigger phrases: run pipeline, execute pipeline, deploy, start build, trigger pipeline, check execution, approve deployment, retry failed pipeline, abort execution, stop pipeline, interrupt execution, kill stuck pipeline.","https:\u002F\u002Fgithub.com\u002FAdmiralGallade\u002Fharness-repository\u002Fblob\u002Fmain\u002Fharnesses\u002Fharness-skills\u002Fskills\u002Frun-pipeline\u002FSKILL.md",[],[]]