enforce-sbom

Insert SBOM Policy Enforcement steps into existing Harness pipelines.

80|16|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/harness/harness-skills --skill enforce-sbom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: enforce-sbom
Source: https://github.com/harness/harness-skills/tree/main/skills/enforce-sbom
Command: npx skills add https://github.com/harness/harness-skills --skill enforce-sbom

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables teams to enforce SBOM policies within Harness pipelines by inserting an SBOM Policy Enforcement step that validates SBOM attestations and evaluates policy sets before deployment.

Core Features & Use Cases

  • Adds an SBOM Policy Enforcement step (SscaEnforcement / CdSscaEnforcement) to existing pipelines to verify attestations and apply OPA SBOM rules.
  • Supports CI, Security, and CD deployment placements, including adding a CD deployment stage when needed.
  • Guides users through a wizard-like workflow to collect pipeline, source, and policy information and then updates the YAML pipeline accordingly.

Quick Start

To start, provide your pipeline URL or ID, select CI or CD placement, and specify the artifact source and policy sets to enforce.

Frequently Asked Questions about enforce-sbom

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce SBOM policies in a Harness pipeline?

You can enforce SBOM policies by inserting an SscaEnforcement or CdSscaEnforcement step into your pipeline. This validates SBOM attestations and applies OPA rules before allowing deployments to proceed.

What do I need to set up before adding an SBOM policy enforcement step?

You need an existing SBOM artifact and configured policy sets ready. You must also provide the pipeline URL or ID, select CI or CD placement, and specify the artifact source for the enforcement step validation.

Can I add SBOM enforcement to both CI and CD deployment stages?

Yes, SBOM policy enforcement supports CI, Security, and CD deployment placements. The workflow can insert steps into existing stages or add a new CD deployment stage when required by your pipeline configuration.

How does SBOM attestation verification work in Harness pipelines?

SBOM attestation verification uses configurable verifyAttestation settings within the enforcement step. It checks the attestation against specified policy sets to ensure artifacts meet OPA compliance rules before deployment.

What is the difference between SscaEnforcement and CdSscaEnforcement steps?

SscaEnforcement and CdSscaEnforcement are step types used to apply SBOM policies. CdSscaEnforcement is specifically utilized when adding policy validation directly within a CD deployment stage placement in Harness pipelines.

How do I configure OPA SBOM rules in my deployment pipeline?

You configure OPA SBOM rules by specifying policy sets during the enforcement step setup. The inserted step evaluates your SBOM against these rules to block or allow deployments based on policy compliance.