Skip to main content

Software Supply Chain Security in 2026: SBOMs, Sigstore, SLSA, and Provenance Explained

By Pashalis LaoutarisUpdated: Category: Security35 min read

Most of the code you ship was written by someone else, built by a machine you do not control, and delivered through a registry you did not choose. Supply chain security is the work of proving what is in your software, who built it, and whether anything changed on the way to your users.

The field has a lot of acronyms. SBOM, VEX, SLSA, Sigstore, Rekor, Fulcio, in-toto, attestations, and provenance all show up in the same conversations, and they are easy to mix up. This guide explains each one in plain terms, shows how they fit together, and gives you a pipeline you can copy.

It is also grounded in real results. I generated software bills of materials for this very site, counted what is inside them, and verified the signatures and provenance of the packages it depends on. The numbers are in section 4 and section 9.

Everything below comes from official documentation, project repositories, release pages, and named incident reports, which I checked on November 18 and 19, 2026. Where a fact came from secondary coverage or sources disagreed, I say so. Tools and rules in this area change fast, so confirm anything you depend on.

This article is the third in my security series. It builds on my guides to dependency scanning, SAST and DAST tools, secrets management, and post-quantum cryptography.

Table of Contents

  1. The Short Answer
  2. Why Supply Chain Attacks Keep Working
  3. The Four Questions Framework
  4. SBOMs in Plain English
  5. Hands-On: Generate and Scan an SBOM
  6. VEX: Turning an SBOM into Decisions
  7. Sigstore: Signing Without Keys
  8. Provenance and SLSA
  9. Package Registries: npm and PyPI
  10. Securing the Pipeline Itself
  11. A Complete Pipeline You Can Copy
  12. Regulation and Customer Demands
  13. Rollout Plans by Team Size
  14. Common Mistakes
  15. Frequently Asked Questions
  16. Conclusion
  17. References

1. The Short Answer

You do not need to adopt every standard at once. Start with the pieces that give the most protection for the least effort.

If you are… Start here
A solo developer or small team Commit your lockfile, pin GitHub Actions to commit SHAs, and enable trusted publishing with provenance if you publish packages.
Publishing an npm or PyPI package Use trusted publishing from CI so provenance is generated for you, instead of long-lived tokens.
Shipping an app or container Generate an SBOM in CI, attest it, and sign the artifact with GitHub attestations or Sigstore.
Consuming lots of third-party software Run npm audit signatures or the equivalent, and scan the SBOMs you receive.
Selling into the EU or to regulated customers Learn the Cyber Resilience Act timeline in section 12 and start producing SBOMs now.
Running an organization’s platform team Enforce SHA pinning, move to short-lived OIDC credentials, and set a verification policy at deploy time.

Three rules carry most of the value.

  • Know what is in your software: An SBOM turns “we think we use that library” into a list you can search within minutes when a new vulnerability lands.
  • Sign and attest builds, and verify them: A signature nobody checks protects nothing.
  • Treat your build system as production: Most recent attacks hit pipelines and publishing accounts, not the code itself.

2. Why Supply Chain Attacks Keep Working

Official docs: CISA: npm ecosystem compromise, CISA: tj-actions and reviewdog

Attackers go where trust is cheap. Compromising one maintainer account, one build action, or one release tarball reaches thousands of downstream users without touching any of their systems.

When What happened
March 2024 Malicious code appeared in xz Utils 5.6.0 and 5.6.1, tracked as CVE-2024-3094. The backdoor lived in the release tarballs, and an engineer noticed it because SSH logins had become slightly slower.
March 2025 The popular GitHub Action tj-actions/changed-files was compromised (CVE-2025-30066), along with reviewdog/action-setup. Secrets such as access keys, personal access tokens, npm tokens, and private keys were exposed, and CISA added both CVEs to its Known Exploited Vulnerabilities catalog.
September 2025 The Shai-Hulud worm compromised over 500 npm packages, according to CISA. It stole credentials and used stolen npm access to publish infected versions of other packages.
March 2026 Malicious versions of the axios package were live for roughly three hours. They were published from a compromised maintainer account, not through the project’s CI pipeline.
March 2026 Attackers force-pushed 75 of 76 version tags in the Trivy GitHub Action and shipped a backdoored Trivy binary. The poisoned action ran its credential stealer before the real scan, so the output looked normal.

What these incidents have in common

  • Identity was the weak point: Stolen credentials, hijacked accounts, and social engineering appear again and again. The code itself was often fine until someone with access changed it.
  • Mutable references let attacks spread: Version tags can be moved. A workflow that says uses: some/action@v1 runs whatever that tag points to today.
  • The build path was invisible: Consumers had no way to see that a release came from an unusual place. In the axios case, the legitimate previous release was published through GitHub Actions with OIDC trusted publishing, while the malicious releases came straight from a maintainer’s account. A consumer who checked provenance could have spotted the difference.
  • Detection was accidental or slow: The xz backdoor was found through a performance oddity, and the axios versions were removed within hours.

The tools in this guide target exactly these gaps. They give consumers a way to ask where a thing came from, and they give producers a way to prove it.

3. The Four Questions Framework

Official docs: Sigstore overview, SLSA specification

The acronyms make more sense when you attach each one to a question a consumer would ask.

Question What answers it Common standards and tools
What is inside this software? A software bill of materials (SBOM) SPDX, CycloneDX, Syft, npm sbom, GitHub dependency graph export
Does this vulnerability matter to me? A VEX statement OpenVEX, CSAF, CycloneDX VEX, Grype
Who built it, and how? Build provenance SLSA provenance, in-toto attestations, GitHub artifact attestations
Is it unchanged and from the expected identity? A digital signature, plus verification Sigstore (Cosign, Fulcio, Rekor), npm and PyPI attestations
Should I allow it to run here? A policy that checks the answers above gh attestation verify, Cosign verification, Kubernetes admission policy

Keep this table in mind. When someone proposes a tool, ask which question it answers. Many teams buy an SBOM tool and think they have solved provenance, which is a different question.

4. SBOMs in Plain English

Official docs: CycloneDX specification overview, CISA 2025 minimum elements for an SBOM

A software bill of materials is an ingredients list for software. It names every component inside a product, with versions and other details, in a format that machines can read.

The idea sounds simple. The value shows up on the day a serious vulnerability is announced and you need to know within minutes whether you ship the affected library.

The two main formats

Format Maintained by Current version Notes
CycloneDX OWASP and Ecma 1.7, released October 21, 2025, and published as ECMA-424 Built for security use. Covers software, hardware, cryptographic assets, and VEX. JSON, XML, and protobuf.
SPDX Linux Foundation 3.0.1, published December 2024 Strong on licensing and compliance. Many tools still emit SPDX 2.3.

Both are widely supported, and most tools can emit either. Pick the one your customers or tooling expect. If nobody asks, CycloneDX is a natural choice for security work, and SPDX is a natural choice when license compliance is the main goal.

What a good SBOM contains

The US government’s 2021 baseline from the NTIA listed the minimum data fields: supplier, component name, version, other unique identifiers, dependency relationships, author of the SBOM data, and a timestamp. CISA published a draft update in August 2025 that adds more fields. The new required elements in the draft are a component hash, license, tool name, and generation context. Generation context describes how, when, and by what the SBOM was produced.

A 2026 joint update from CISA and international partners followed, according to the Australian Cyber Security Centre’s summary. I could not confirm from the sources I read whether the final text kept every draft field exactly as proposed, so check the CISA document if you need the details.

Where in the lifecycle you generate one

Stage What you scan Strength Weakness
Source Lockfiles and manifests Fast, and available early Misses what the build adds or removes
Build The build’s actual inputs Most accurate for what you compiled Needs integration with your build system
Artifact or image The final container or package Matches what you really ship, including OS packages Cannot see why a component is there

For containers, scanning the final image is usually the most honest view. For libraries, the build-time lockfile is a good source. CISA’s data model records this as the generation context, which is why it became a required element in the draft.

Real numbers from this site

I generated SBOMs for this website with the npm sbom command built into npm 12.2.0. The results show why component lists matter.

Measure Result
Direct dependencies in package.json 15 (9 runtime and 6 development)
Components in the CycloneDX SBOM 425
Packages in the SPDX SBOM 426, with 987 relationships between them
Formats npm produced CycloneDX 1.5 and SPDX 2.3
Components with a content hash 422 of 425
Components without a license field 0
License mix MIT 378, ISC 15, BSD-2-Clause 9, Apache-2.0 7, BSD-3-Clause 6

Fifteen packages I chose turned into 425 I never looked at, a multiplier of roughly 28. That count includes platform-specific optional binaries for other operating systems. It is the same pattern in nearly every JavaScript project, and it is the reason a vulnerability in some small transitive package can land on your doorstep.

The SBOM also shows a version gap. The current CycloneDX release is 1.7, while npm’s built-in generator emitted 1.5. That is fine for most uses, and it is worth knowing when a customer asks for a specific version.

Limits of SBOMs

  • An SBOM is a claim: It says what the generator found. A scanner can miss components, especially vendored code or statically linked libraries.
  • It is a snapshot: It describes one build. A new build needs a new SBOM.
  • It does not say what is exploitable: A list of components is not a list of risks. That is the job of VEX, covered in section 6.
  • It does not prove integrity: A forged SBOM looks identical to a real one unless it is signed and attested.

5. Hands-On: Generate and Scan an SBOM

Official docs: Syft, Grype, npm sbom

You can produce a useful SBOM in a few minutes.

With npm

npm sbom --sbom-format cyclonedx > sbom.cdx.json
npm sbom --sbom-format spdx > sbom.spdx.json

Run this in a project where you have installed dependencies. I ran both commands on this site and they worked as shown, producing the files summarized above.

With Syft

Syft generates SBOMs from container images, directories, and archives. It supports CycloneDX, SPDX, and its own JSON format, and it reads packages from many ecosystems, including Alpine, Debian, RPM, Go, Python, Java, JavaScript, Ruby, Rust, PHP, and .NET. The version I found was 1.57.2, released on November 16, 2026.

syft alpine:latest
syft ./my-project
syft <image> -o cyclonedx-json
syft <image> -o spdx-json=./spdx.json -o cyclonedx-json=./cdx.json

Scanning an image is usually better than scanning source, because the image includes operating system packages your lockfile never mentions.

Scan the SBOM for vulnerabilities

Grype scans container images, filesystems, and SBOMs. Version 0.122.1 was current on November 18, 2026.

grype sbom:./sbom.cdx.json

This is the workflow that makes an SBOM pay off. You generate it once at build time, store it with the release, and re-scan it whenever new vulnerability data arrives, without rebuilding anything.

Other generators

  • GitHub: the dependency graph can export an SBOM, and GitHub lists SBOM export among the features available on all plans.
  • Docker: docker buildx can attach SBOMs to images at build time.
  • Trivy and OSV-Scanner: both read lockfiles and images. Section 8 of my dependency scanning article covers them and the 2026 Trivy incident.

6. VEX: Turning an SBOM into Decisions

Official docs: CISA VEX status justification, OpenVEX specification

Scan any real SBOM and you will get alerts for vulnerabilities that cannot hurt you. The vulnerable function may never be called, or the affected code may not be present in your build. Acting on every alert wastes time. Ignoring them loses trust.

VEX, short for Vulnerability Exploitability eXchange, is a machine-readable statement from a software producer about whether a specific vulnerability affects a specific product.

The four statuses

CISA’s guidance defines four statuses.

  • Not affected: the product is not impacted by this vulnerability.
  • Affected: the product is impacted, and action is recommended.
  • Fixed: the product contains a fix.
  • Under investigation: the producer has not decided yet.

A not_affected statement must come with a reason. It can use a justification such as “vulnerable code not present” or “vulnerable code not in execute path,” or an impact statement that explains why.

Formats and tools

The common encodings are OpenVEX, CSAF, and CycloneDX VEX. Grype describes OpenVEX support for filtering and augmenting scan results. Other scanners such as Trivy are reported to use OpenVEX files to suppress findings as well.

The honest caveat

A VEX statement is the author’s claim, not proof. If a vendor says a vulnerability is not exploitable in their product, you are trusting that vendor’s analysis. Treat a signed, attested VEX statement from a producer you trust as strong evidence. Treat an unsigned file from an unknown source as a hint.

7. Sigstore: Signing Without Keys

Official docs: Sigstore overview, Cosign, Rekor v2 GA announcement

Traditional code signing asks you to create a key pair, protect the private key forever, publish the public key, and rotate everything if the private key leaks. Most teams do not do that well, so most software ships unsigned.

Sigstore replaces long-lived keys with identity. It is an open source project backed by the Open Source Security Foundation, with contributions from Google, Red Hat, Chainguard, GitHub, and Purdue University. It is free to use, and it runs a public-good service for the community.

The components

Piece Role
Cosign The client that signs and verifies containers, blobs, and attestations
Fulcio A certificate authority that issues short-lived certificates tied to an identity
Rekor A tamper-resistant public transparency log of signing events
TUF root The distributed root of trust that clients use to verify Sigstore’s own keys

How keyless signing works

  1. Cosign creates an ephemeral key pair on your machine or in your CI job.
  2. It sends the public key and an OIDC identity token to Fulcio: The token carries your email address or service account, or workflow information in a CI job.
  3. Fulcio checks the token and issues a short-lived certificate that binds your identity to the public key.
  4. Cosign signs the artifact with the private key, then discards that key after a single use.
  5. The signature, certificate, and artifact digest are recorded in Rekor, where anyone can audit them.

Sigstore services never see your private key, and you have nothing to store or rotate.

What verification checks

A verifier does not ask “is this key trusted?” It asks four things.

  • The signature is valid for the artifact, using the public key in the certificate.
  • The identity in the certificate matches the identity you expect, such as a specific repository and workflow.
  • The certificate chains to Sigstore’s root of trust.
  • The log entry proves the signing event was recorded.

Together these tell you the artifact came from its expected source and was not changed after signing. The identity check is the step people skip, and it matters most. A valid Sigstore signature from the wrong identity is still a valid signature.

Commands you will use

These commands come from the Cosign documentation. Replace the placeholders with your own values.

# Sign a container image by digest, not by tag
cosign sign $IMAGE@sha256:<digest>

# Verify it, naming the identity and issuer you expect
cosign verify $IMAGE@sha256:<digest> \
  --certificate-identity=$IDENTITY \
  --certificate-oidc-issuer=$OIDC_ISSUER

# Sign and verify a file
cosign sign-blob artifact --bundle artifact.sigstore.json --yes
cosign verify-blob artifact --bundle artifact.sigstore.json \
  --certificate-identity=$IDENTITY \
  --certificate-oidc-issuer=$OIDC_ISSUER

For a GitHub Actions workflow, the issuer is https://token.actions.githubusercontent.com, and the identity is the workflow’s URL, for example https://github.com/OWNER/REPO/.github/workflows/release.yml@refs/heads/main. The Cosign documentation also offers regular-expression variants of both flags for matching several workflows.

What changed recently

  • Cosign 3: the current line is 3.x, with version 3.1.4 released on October 20, 2026. The project’s changelog shows steady work on the new bundle format and attestation storage, and it deprecates cosign triangulate and cosign copy. Check your pipeline’s flags when you upgrade.
  • A security fix: versions 3.0.4 and 2.6.2 fixed a bundle verification issue tracked as GHSA-whqx-f9j3-ch6m. Keep your verifier up to date, since a verifier with a bug protects nothing.
  • Rekor v2: it reached general availability on October 10, 2025. It moves to a tile-backed log that is cheaper to run and simpler to maintain. It drops the search index, the lookup-by-index APIs, and most entry types, keeping only hashedrekord for artifacts and dsse for attestations. Signing clients must persist the inclusion proof with the artifact, and clients should read log locations from the TUF-distributed signing configuration instead of hard-coding them.
  • Timestamps: Cosign 3.0.5 automatically requires a signed timestamp with Rekor v2 entries.

Privacy and trust considerations

  • Signing events are public: Keyless signing on the public-good instance writes your identity, such as an email address or a workflow URL, to a public log. That is the point, and it is also a privacy choice. For private artifacts, GitHub offers a private Sigstore instance with no transparency log.
  • The log is a witness, not a judge: Rekor proves that something was signed. It does not prove that the signer was honest.
  • You still need a policy: Decide which identities you accept for which artifacts, and enforce that at install or deploy time.

8. Provenance and SLSA

Official docs: SLSA levels, GitHub artifact attestations

A signature says who vouches for an artifact. Provenance says how it was built: which source, which build system, and which workflow produced it.

What SLSA is

SLSA, pronounced “salsa,” stands for Supply-chain Levels for Software Artifacts. It is a framework that defines levels of build security. The current specification is version 1.2. The build track has four levels.

Level Name What it means What it protects against
Build L0 No guarantees The absence of SLSA, typical of development or test builds. Nothing
Build L1 Provenance exists Provenance shows how the package was built. It may be unsigned and is easy to forge. Honest mistakes and missing documentation
Build L2 Hosted build platform A hosted platform generates and signs the provenance. Tampering after the build
Build L3 Hardened builds The platform isolates builds and keeps signing secrets away from user-defined build steps. Tampering during the build, including insiders and other tenants

The levels describe the build system’s guarantees, not the safety of your code. A Level 3 build of vulnerable code is still vulnerable.

GitHub artifact attestations

GitHub’s artifact attestations create signed provenance for builds. Each one can record the repository, the commit SHA, and the triggering event, and it can also carry an SBOM.

  • SLSA level: according to GitHub, artifact attestations alone provide SLSA v1.0 Build Level 2. Running builds in a reusable workflow shared across your organization can reach Build Level 3, because it isolates the build from the calling workflow.
  • Signing: GitHub uses Sigstore. Public repositories use the Sigstore public-good instance, and a copy goes to a public transparency log. Private repositories use GitHub’s own instance, which has no transparency log and federates only with GitHub Actions.
  • A reminder from GitHub itself: attestations are not a guarantee that an artifact is secure. They show where and how software was built, and you must define your own policy for acting on that information.

The workflow step

The documentation uses the actions/attest action. These permissions are required.

permissions:
  id-token: write
  contents: read
  attestations: write

For a binary, the step is short.

- name: Generate artifact attestation
  uses: actions/attest@v4
  with:
    subject-path: "PATH/TO/ARTIFACT"

For a container image, add packages: write and pass subject-name (the image name without a tag), subject-digest, and push-to-registry: true. The action’s README also lists an artifact-metadata: write permission, which it needs to create the artifact storage record, so add it if the action reports a permission error.

Verifying an attestation

gh attestation verify PATH/TO/ARTIFACT -R OWNER/REPO
gh attestation verify oci://ghcr.io/OWNER/IMAGE:TAG -R OWNER/REPO

For a container image, run docker login ghcr.io first. SBOM attestations need a --predicate-type option, for example https://spdx.dev/Document/v2.3 for an SPDX 2.3 SBOM.

Verification is the half people forget. Producing attestations without checking them anywhere adds cost and no protection.

9. Package Registries: npm and PyPI

Official docs: npm provenance, npm trusted publishing, PyPI attestations

Most of your dependencies arrive through a package registry, so registry features matter as much as your own pipeline.

npm provenance

npm can attach a provenance statement to a package version. It proves where the package was built and who published it. It uses two attestations, and the publish attestation is signed by Sigstore’s public-good servers and logged in a public transparency ledger.

  • Requirements: a supported cloud CI provider using a cloud-hosted runner, which means GitHub Actions or GitLab CI/CD, plus npm 9.5.0 or later. The repository field in package.json must be public and match where you publish from, with case-sensitive matching.
  • In GitHub Actions: grant id-token: write and add the --provenance flag, or set provenance=true in your npm configuration.
  • Verification: npm audit signatures checks registry signatures and verifies provenance attestations for what you installed.
  • A limit stated by npm: provenance does not guarantee a package has no malicious code. It links a package to its source and build instructions so people can audit them.

npm trusted publishing

Trusted publishing removes long-lived npm tokens from your CI. Your workflow proves its identity with OpenID Connect, and npm accepts it because you registered that workflow as a trusted publisher.

  • Requirements: npm CLI 11.5.1 or later and Node 22.14.0 or later.
  • Providers: GitHub Actions on GitHub-hosted runners, GitLab CI/CD on GitLab.com shared runners, and CircleCI cloud. Self-hosted runners are not supported.
  • Setup: in the package settings on npmjs.com, add a trusted publisher with the organization, repository, and workflow filename including the .yml or .yaml extension. npm does not verify the configuration when you save it, so mistakes appear at publish time.
  • Provenance comes with it: attestations are generated by default for GitHub Actions and GitLab CI/CD publishes of public packages from public repositories. CircleCI publishes do not generate provenance.
  • Limits: up to 10 trusted publishers per package, no editing of existing connections, and a new configuration must complete a first successful publish within two days or it expires.

The axios incident from section 2 shows why this matters. Its legitimate release came through GitHub Actions with OIDC trusted publishing. The malicious releases were pushed directly from a hijacked maintainer session. Once trusted publishing exists for a package, a release that lacks it is a visible anomaly.

My own results

I ran npm audit signatures on this site’s dependency tree on November 19, 2026.

Check Result
Packages audited 431
Packages with verified registry signatures 431
Packages with verified attestations 119

Every package had a valid registry signature. About 28 percent also carried verified provenance attestations. That is real adoption, and it is also a reminder that most of the registry still publishes without provenance, so a missing attestation is not proof of a problem.

PyPI attestations

PyPI implements PEP 740 digital attestations. An attestation binds a release file to a cryptographic digest, so users can check that a package came from a particular identity.

  • Types: PyPI accepts two in-toto predicates, SLSA Provenance and PyPI Publish, with at most one of each per file.
  • Who can sign: Trusted Publisher identities from GitHub Actions, GitLab CI/CD, and Google Cloud. ActiveState is a supported Trusted Publisher but does not currently produce attestations.
  • Gap: the PyPI documentation I read gave no verification steps, so check the current tooling guidance before building a policy around it.

10. Securing the Pipeline Itself

Official docs: GitHub Actions 2026 security roadmap, GitHub Actions policy: SHA pinning

Signing and SBOMs describe your artifacts. Attackers also go after the pipeline that creates them, so it needs the same care.

Pin third-party actions to commit SHAs

A tag is a pointer that its owner can move. A full commit SHA cannot be redirected. The tj-actions and Trivy attacks both worked by changing what a trusted reference pointed to.

# Risky: the tag can be moved
- uses: some-org/some-action@v1

# Safer: a full commit SHA, with the version as a comment
- uses: some-org/some-action@0123456789abcdef0123456789abcdef01234567 # v1.2.3

Dependabot and Renovate can keep SHA-pinned actions current. My dependency scanning guide shows the settings, including delay periods for new releases. GitHub also lets administrators enforce SHA pinning through the allowed-actions policy, a feature announced in August 2025.

Workflow lockfiles

Pinning direct actions leaves a gap: an action can pull in other actions internally. GitHub’s answer is a workflow lockfile.

  • What it is: per InfoQ’s report, a file named .github/workflows/actions.lock pins the exact commits a workflow uses, including transitive dependencies from composite actions.
  • Status: InfoQ reports a public preview on October 14, 2026 and general availability on October 28, 2026. I could not confirm that against GitHub’s own changelog, so check GitHub’s documentation before relying on it.
  • How you use it: install the gh actions-lock extension for the GitHub CLI, onboard workflows one at a time, and optionally enable a “Require lockfile” policy.
  • A caution from the same report: a lockfile proves you run the commits you locked. It does not prove they are safe. Review dependencies before you lock them, and review the Dependabot pull request that updates them.

Other roadmap items

GitHub’s March 2026 roadmap for Actions security also lists policy-driven workflow execution built on rulesets, secrets scoped to specific repositories and environments, a near real-time Actions data stream, and a native egress firewall for GitHub-hosted runners. The roadmap gave relative timelines of three to nine months and no calendar dates, so treat these as direction, not dates.

Basic hygiene

  • Least privilege: set permissions: explicitly in every workflow and start from read-only.
  • Short-lived credentials: use OIDC to cloud providers and registries instead of stored secrets, as trusted publishing does.
  • Protect secrets: my secrets management guide and Gitleaks guide cover leaks in repositories and pipelines.
  • Delay new releases: a cooldown before adopting new versions would have avoided the axios incident entirely. See the dependency scanning guide for settings.
  • Strong account security: CISA’s advice after Shai-Hulud included phishing-resistant multi-factor authentication on GitHub and npm accounts. My guide to passkeys and two-factor authentication covers how to implement that.

11. A Complete Pipeline You Can Copy

Official docs: actions/attest, npm sbom

This workflow builds a package, generates an SBOM, and attests both the build and the SBOM. I verified each option name against the documentation, but I did not run this exact file, so test it in a throwaway repository first.

name: Release with attestations
on:
  push:
    tags: ["v*"]

permissions: {}

jobs:
  build:
    runs-on: ubuntu-latest
    permissions:
      id-token: write
      contents: read
      attestations: write
      artifact-metadata: write
    steps:
      - uses: actions/checkout@v7.0.1

      - uses: actions/setup-node@v7
        with:
          node-version: 24

      - run: npm ci
      - run: npm run build
      - run: npm pack

      - name: Generate SBOM
        run: npm sbom --sbom-format spdx > sbom.spdx.json

      - name: Attest build provenance and SBOM
        uses: actions/attest@v4
        with:
          subject-path: "*.tgz"
          sbom-path: sbom.spdx.json

      - uses: actions/upload-artifact@v7
        with:
          name: release
          path: |
            *.tgz
            sbom.spdx.json

How to read this workflow

  • Top-level permissions are empty, and the job grants only what it needs. The attestation action needs id-token to mint an OIDC token and attestations to store the result.
  • The SBOM comes from npm sbom, which I tested on this site, and the SPDX 2.3 output matches the predicate type GitHub documents for verification.
  • One attest step covers both the subject and the SBOM, using the sbom-path input described in the action’s README.
  • Pin your actions to commit SHAs in a real repository, as section 10 explains. I left version tags here for readability.
  • Action versions: when I checked on November 19, 2026, the latest releases were actions/attest v4.2.2, actions/checkout v7.0.1, actions/setup-node v7.1.0, and actions/upload-artifact v7.0.2.
  • The glob: the attest action accepts a glob pattern in subject-path, so *.tgz matches the tarball that npm pack creates.

Verify before you use it

On a consumer machine, check the attestation against the repository that should have built it.

gh attestation verify ./my-package-1.2.3.tgz -R OWNER/REPO

gh attestation verify ./my-package-1.2.3.tgz -R OWNER/REPO \
  --predicate-type https://spdx.dev/Document/v2.3

The first command checks build provenance. The second checks the SBOM attestation. In a deployment pipeline, make this a required gate, and fail the deploy when it does not pass.

For containers and Kubernetes

Cosign signs and verifies container images by digest. For Kubernetes, the Sigstore policy-controller admission controller checks signatures and attestations before pods run. I found version 0.15.1, released in March 2026, and I did not test it, so read its documentation before depending on it.

12. Regulation and Customer Demands

Official docs: EU Cyber Resilience Act overview, CISA SBOM minimum elements

Supply chain controls are moving from good practice to legal obligation, especially for anyone selling software or connected products into the European Union.

The EU Cyber Resilience Act

The European Commission’s page gives the key dates.

Date What happens
December 10, 2024 The Cyber Resilience Act entered into force.
September 11, 2026 Manufacturers must report actively exploited vulnerabilities. This date has passed.
December 11, 2027 The main obligations apply.

The Commission also published practical guidance on July 27, 2026. The Act requires manufacturers to handle vulnerabilities throughout a product’s lifecycle.

On SBOMs specifically, the sources I read agree on the substance but are secondary. Law-firm and vendor commentary says Annex I, Part II asks manufacturers to identify and document components, including by drawing up an SBOM in a commonly used, machine-readable format that covers at least the top-level dependencies. The Commission page I read does not mention SBOMs, and I could not retrieve the regulation text itself. Read Regulation (EU) 2024/2847 or take legal advice before you rely on this.

The practical point is clear without the legal detail. You cannot report which of your products contain an exploited component within 24 hours if you do not know your components. An SBOM pipeline is how you get that answer.

United States guidance

CISA’s draft 2025 minimum elements updated the NTIA’s 2021 baseline, as described in section 4. A 2026 joint update with international partners followed. Check the current CISA text if a contract refers to it.

What customers ask for

Procurement questionnaires increasingly ask for an SBOM, a vulnerability disclosure process, and evidence of build integrity. Having an SBOM and attestation pipeline turns those from a scramble into a download.

13. Rollout Plans by Team Size

Solo developer or open-source maintainer

  1. Commit your lockfile and install from it in CI.
  2. Pin GitHub Actions to commit SHAs, and let Dependabot or Renovate update them.
  3. Enable trusted publishing on npm or PyPI, so provenance is generated for you.
  4. Turn on two-factor authentication that resists phishing for your registry and GitHub accounts.
  5. Publish an SBOM with each release.

Success metric: every release has provenance, and no long-lived publish token exists.

Team of 5 to 50

  1. Generate an SBOM in CI for every service and library.
  2. Attest builds with GitHub artifact attestations or Sigstore.
  3. Verify at deploy time: Make gh attestation verify or Cosign verification a gate.
  4. Enforce SHA pinning through the allowed-actions policy.
  5. Scan stored SBOMs on a schedule so new vulnerabilities surface without a rebuild.
  6. Assign an owner for the policy and its exceptions.

Success metric: time to answer “do we ship component X?” is under an hour.

Larger company or regulated industry

  1. Map products to obligations, including the EU Cyber Resilience Act dates.
  2. Standardize on a format and a pipeline, and require every team to use it.
  3. Reach SLSA Build Level 3 for critical products by using reusable, centrally owned build workflows.
  4. Run a policy engine at admission and deployment that checks signatures, identities, and attestations.
  5. Consume supplier SBOMs and VEX data, and verify their signatures.
  6. Rehearse the incident path: Practice finding every affected product from your SBOM store.

Success metric: percentage of production artifacts with verified provenance and a current SBOM.

My pick for a small project

This is opinion and not a test result. For a small project on GitHub, I would commit the lockfile, pin actions by SHA, publish with trusted publishing so provenance appears automatically, and attach an SPDX SBOM to each release. I would add artifact attestations and a verification step the first time someone else depends on my builds. That costs nothing, and it covers the failure modes behind most of the incidents in section 2.

14. Common Mistakes

  • Generating an SBOM and never using it: A file in a bucket is not a control. Scan it, search it, and test your ability to answer questions from it.
  • Signing without verifying: Signatures protect nobody until something checks them. Make verification a required step.
  • Skipping the identity check: A valid Sigstore signature from the wrong identity is still valid. Always pass the expected identity and issuer.
  • Trusting tags: Tags move. Pin to commit SHAs.
  • Long-lived publish tokens: They get stolen. Use trusted publishing and OIDC.
  • Confusing provenance with safety: Provenance says where something was built. It does not say the code is clean, as npm itself notes.
  • Treating a missing attestation as an alarm: Most of the ecosystem is not there yet. Use it as a signal, not a verdict, for packages that used to have provenance and suddenly lose it.
  • Forgetting the pipeline: Attackers target build systems and publishing accounts. Harden them like production.
  • Ignoring tool updates: Verifiers have bugs too, as the Cosign advisory showed, so keep them current with updates.
  • One-time projects: Supply chain security is a process. Owners, dashboards, and reviews keep it alive.

15. Frequently Asked Questions

What is an SBOM?

It is a machine-readable list of the components inside a piece of software, with versions and other details. Think of it as an ingredients label for code.

SPDX or CycloneDX?

Either works, and most tools produce both. CycloneDX is designed with security use in mind, and SPDX is strong on license compliance. Choose what your customers and tools expect.

Do I need an SBOM if I only build a website?

Yes, it helps even there. This site has 15 direct dependencies that expand to 425 components, so a list is the only practical way to answer “do we use package X?” quickly.

What is the difference between an SBOM and provenance?

An SBOM says what is inside the software. Provenance says how, where, and by what workflow it was built. They answer different questions, and you often want both.

What is Sigstore in one sentence?

It is a free, open source system that signs software using short-lived certificates tied to an identity and records every signing event in a public log, so nobody has to manage long-lived keys.

Is Sigstore keyless signing really keyless?

You do not manage keys. Cosign creates a temporary key pair for each signing and throws the private key away. The certificate that Fulcio issues binds your identity to the temporary public key.

Are my signing events public?

On the public-good Sigstore instance, yes. The identity and the signing event go to a public transparency log. GitHub’s private instance for private repositories has no transparency log.

What is SLSA?

It is a framework of build security levels. Level 1 means provenance exists, Level 2 means a hosted platform signs it, and Level 3 means the build is hardened against tampering during the build. The current version is 1.2.

Which SLSA level do GitHub attestations give me?

According to GitHub, artifact attestations alone provide Build Level 2, and builds in a shared reusable workflow can reach Level 3.

Does npm provenance mean a package is safe?

No. npm says provenance does not guarantee a package has no malicious code. It links the package to its source and build so people can audit it.

What is trusted publishing?

It lets your CI publish a package with a short-lived OIDC credential instead of a long-lived token. npm, PyPI, and others support it, and npm generates provenance automatically for supported public builds.

How do I verify what I install?

For npm, run npm audit signatures. It verified signatures for all 431 packages in this site’s tree, and 119 of them also carried verified attestations. For GitHub artifacts, use gh attestation verify.

Does an SBOM prove my software is secure?

No, it does not. An SBOM only lists components, so you still need vulnerability scanning, VEX data or your own analysis, and verification of where the artifacts came from.

What is VEX for?

It tells consumers whether a known vulnerability actually affects a product, which cuts noise from scanners. It is a claim by the producer, so trust it only as far as you trust the producer.

Is the EU Cyber Resilience Act relevant to me?

If you make products with digital elements that you sell in the EU, probably yes. Vulnerability reporting duties started on September 11, 2026, and the main obligations apply from December 11, 2027. Read the regulation or ask a lawyer.

What should I do first?

Commit your lockfile, pin your CI actions by SHA, and turn on trusted publishing if you publish packages. Those three steps address most real incidents.

16. Conclusion

Supply chain security looks complicated because it has many parts. The core idea is simple: make it possible for anyone to ask what is inside your software, who built it, and whether it changed, and make the answers checkable by machines.

Start with the cheap, high-value steps. Commit your lockfile, pin your actions, use short-lived credentials, and publish with provenance. Add an SBOM to each release, then attest and verify your builds, and finally enforce a policy where it counts, which is the moment before something runs.

The attacks of the past two years succeeded by exploiting trust in accounts, tags, and pipelines. These tools do not make trust unnecessary. They make it visible, and visible trust is much harder to abuse. Tools and rules here keep changing, so treat this article as a map as of late November 2026.

17. References

Standards and frameworks

Sigstore

Tools

GitHub and registries

Incidents


Back to All Posts
Share this post:
Share on X
Share on LinkedIn
Share on Reddit
Share on Facebook
Copy Link
Copied!