SLSA
This page describes how the OCM release artifacts align with the
SLSA (Supply-chain Levels for Software Artifacts) Build
track, as defined in SLSA v1.2, the current
version. Every released CLI binary, OCI image, and Helm chart carries a GitHub
build provenance attestation. All of them are attested from a
reusable workflow, which is GitHub’s recipe for Build Level 3, and before
promoting a release the workflow verifies the provenance of every RC artifact
against the exact signing workflow identity and the release commit; the final
Helm chart is re-packaged and attested after that gate, so its attestation is
not re-verified by the workflow. OCM component versions are
signed, not provenance-attested; this and
other gaps are documented below. The examples below use a VERSION shell
variable; set it to a release whose assets include the artifacts described here.
SLSA Build Track Summary
SLSA organizes supply chain security into tracks and levels. The Build track covers how an artifact was built; its requirements are unchanged from SLSA v1.0:
| Level | Name | What it requires |
|---|---|---|
| Build L0 | No guarantees | Nothing |
| Build L1 | Provenance exists | The build produces provenance describing how the artifact was built |
| Build L2 | Hosted build platform | Provenance is signed and generated by a hosted build platform (e.g. GitHub Actions) |
| Build L3 | Hardened builds | Provenance is unforgeable: the signing key is inaccessible to user-defined build steps. Builds are isolated: ephemeral environments, no influence between builds, and no cache poisoning |
SLSA itself does not name GitHub workflows. GitHub maps its platform onto the
levels: artifact attestations
(docs)
provide Build L2, and attestations generated inside a
reusable workflow
provide
Build L3,
because the provenance then names the reusable workflow as the signer, which
consumers can pin with gh attestation verify --signer-workflow. The levels
on this page follow GitHub’s mapping.
How OCM Generates Attestations
OCM uses
actions/attest-build-provenance
to create in-toto provenance attestations signed by
Sigstore through the GitHub Actions OIDC identity. The attestation is stored in
the repository’s attestation ledger and, for OCI artifacts, also pushed to the
container registry alongside the image or chart.
The build is split across reusable workflows:
| Workflow | Trigger | Role |
|---|---|---|
release.yml | workflow_dispatch (release manager) | Top-level release orchestrator; calls pipeline.yml and controller-chart-final.yml |
pipeline.yml | push / pull_request (daily CI) or workflow_call (from release.yml) | Calls cli.yml and kubernetes-controller.yml for builds, then publishes and attests images and the Helm chart |
cli.yml | workflow_call only | Builds CLI binaries and attests them |
kubernetes-controller.yml | workflow_call only | Builds the controller image (no attestation; attestation happens at publish time in pipeline.yml) |
controller-chart-final.yml | workflow_call only | Re-packages, pushes and attests the final Helm chart during a release |
Under GitHub’s mapping, the level depends on where the attestation is generated. In a reusable workflow, the provenance names that workflow as the signer, separate from the workflow that called it:
- CLI binaries are attested in
cli.yml, which is always invoked as a reusable workflow. - CLI image, controller image, and Helm chart (RC) are attested in
pipeline.yml. On a release,release.ymlcallspipeline.ymlas a reusable workflow, so GitHub rates the attestation Build L3. On a direct push tomain,pipeline.ymlruns as the top-level workflow, so the same artifacts receive Build L2 attestations. The rating is GitHub’s; the isolation requirements of SLSA Build L3 are not fully met, see Known Gaps. - Final Helm chart (the version-promoted chart published during a final
release) is re-packaged and attested in
controller-chart-final.yml, whichrelease.ymlcalls as a reusable workflow. This attestation is Build L3.
Per-Artifact Provenance
| Artifact | Registry path | Attested | Build level (release) | Build level (push to main) |
|---|---|---|---|---|
CLI binaries (ocm-<os>-<arch>) | GitHub release assets | ✅ subject-path | Build L3 | Build L3 |
| CLI OCI image | ghcr.io/open-component-model/cli | ✅ subject-digest, pushed to registry | Build L3 | Build L2 |
| Controller OCI image | ghcr.io/open-component-model/kubernetes/controller | ✅ subject-digest, pushed to registry | Build L3 | Build L2 |
| Helm chart (RC) | ghcr.io/open-component-model/kubernetes/controller/chart | ✅ subject-digest, pushed to registry | Build L3 | Build L2 |
| Helm chart (final) | ghcr.io/open-component-model/kubernetes/controller/chart | ✅ subject-digest, pushed to registry | Build L3 | — |
| OCM component versions | ghcr.io/open-component-model//ocm.software/* | ❌ No GitHub attestation — keyless Sigstore signature in the descriptor instead, see Component Version Signatures | — | — |
Before promoting the release to final, the verify_attestations job in
release.yml verifies the build provenance of every RC artifact: each release
binary, both CLI images, the controller image and the RC chart. It pins the
certificate identity to the exact signing workflow of this run
(cli.yml@<release branch> for binaries, pipeline.yml@<release branch> for
images and the RC chart) and the source commit to the dispatched SHA, so an
attestation signed from another branch or another commit is rejected. For the
Linux binaries and both images it also verifies the OpenVEX attestation. SBOM
attestations are not verified by that job, and neither is the final chart: it is
re-packaged and attested after the gate, in controller-chart-final.yml. Verify
those yourself as shown below.
Component Version Signatures
The three release component versions (ocm.software/ocm, ocm.software/cli,
ocm.software/kubernetes/controller) are signed right after they are published,
with ocm sign component-version
(.github/workflows/publish-components.yml). The signing is keyless Sigstore:
the workflow’s GitHub Actions OIDC token is exchanged at public-good Fulcio for
a short-lived certificate, the signature is recorded in Rekor, and the bundle —
signature bytes, Fulcio certificate and Rekor inclusion proof — is stored in the
descriptor’s signatures field. The same identity mechanism as the build
provenance above, published through the component descriptor instead of GitHub’s
attestation ledger.
What that signature covers:
- The normalized component descriptor, so every resource digest it lists is covered: the images, the chart, the CLI binaries, and the local blobs — the SBOMs and the OpenVEX documents, see EU Cyber Resilience Act: SBOMs and VEX Documents.
- It travels with the component version:
ocm transferinto another registry carries the signature and the local blobs, so it is verifiable where the GitHub attestation ledger is not reachable. Offline verification additionally needs the Sigstore trust material locally: without aTrustedRoot/v1alpha1credential (trustedRootJSONortrustedRootJSONFile) the verification refreshes the public-good TUF root over the network.ocm transfermoves artifacts, not the.ocmconfigand credentials — configure those on the target side.
To verify, add the entry below to the configurations list of your .ocmconfig
— the signer is the publish-components.yml reusable workflow of this
repository, authenticated by GitHub’s OIDC issuer. See
Verify Sigstore (Keyless)
for the complete file layout:
- type: signing.config.ocm.software/v1alpha1
verifier:
type: SigstoreVerificationConfiguration/v1alpha1
certificateOIDCIssuer: https://token.actions.githubusercontent.com
certificateIdentityRegexp: ^https://github\.com/open-component-model/open-component-model/\.github/workflows/publish-components\.yml@.*$ocm verify component-version --config .ocmconfig \
"ghcr.io/open-component-model//ocm.software/cli:${VERSION}"The ref the certificate records depends on the release that signed, so match it with a regex or read it out of the signature first; see Sign with Sigstore for inspecting a bundle and for the exact-match fields.
publish-components.yml is a public reusable workflow. Another repository can
call it, and the certificate of a signature made from that run names the same
reusable workflow — so the regex above alone does not prove that a component
version came from an OCM release. Obtain component versions from
ghcr.io/open-component-model rather than from a mirror, or pin the calling
repository too, by reading the source-repository fields out of the bundle as
shown in the signing guide.
A Sigstore signature is not SLSA provenance: it attests who signed which descriptor, not how the artifacts were built, which is why the component versions stay a gap in the Build track below.
Verifying Attestations
Use the GitHub CLI gh attestation verify
subcommand. For an oci:// subject it pulls the artifact from the registry, so
authenticate to GHCR first, for example with
gh auth token | docker login ghcr.io -u "$(gh api user --jq .login)" --password-stdin.
The four basic examples below check only that some workflow of the organization
produced the attestation: a build of main passes them too, and narrowing to
--repo open-component-model/open-component-model does not change that. They
answer “did this come from open-component-model”, not “is this a release
build” — for the latter use the pinned commands below them.
CLI Binaries
Download a release binary and verify it against the repository’s attestation ledger:
: "${VERSION:?set VERSION to such a release, for example 0.27.0-rc.1}"
gh release download "v${VERSION}" \
--repo open-component-model/open-component-model \
--pattern "ocm-linux-amd64" \
--dir /tmp/ocm
gh attestation verify /tmp/ocm/ocm-linux-amd64 \
--owner open-component-modelCLI OCI Image
gh attestation verify \
"oci://ghcr.io/open-component-model/cli:${VERSION}" \
--owner open-component-modelController OCI Image
gh attestation verify \
"oci://ghcr.io/open-component-model/kubernetes/controller:${VERSION}" \
--owner open-component-modelHelm Chart
gh attestation verify \
"oci://ghcr.io/open-component-model/kubernetes/controller/chart:${VERSION}" \
--owner open-component-model--signer-workflow pins which workflow signed an attestation. It proves the
provenance was produced by that reusable workflow, which is what GitHub’s
mapping bases its Build L3 rating on; it does not by itself establish the
isolation requirements of SLSA Build L3 (see Known Gaps, which
records a shared Go build cache). It also does not say that the build was a
release build: pipeline.yml signs the push-to-main attestations too, and
those pass the same --signer-workflow check. Add --source-ref to require
that the provenance came from a release branch — that is what separates a
Build L3 release build from a Build L2 build of main:
SOURCE_REF="refs/heads/releases/v$(echo "${VERSION}" | cut -d. -f1-2)"For the CLI image and RC chart, the signer is pipeline.yml:
gh attestation verify \
"oci://ghcr.io/open-component-model/cli:${VERSION}" \
--owner open-component-model \
--signer-workflow open-component-model/open-component-model/.github/workflows/pipeline.yml \
--source-ref "${SOURCE_REF}"For the final Helm chart of a release built with controller-chart-final.yml,
that workflow is the signer:
gh attestation verify \
"oci://ghcr.io/open-component-model/kubernetes/controller/chart:${VERSION}" \
--owner open-component-model \
--signer-workflow open-component-model/open-component-model/.github/workflows/controller-chart-final.yml \
--source-ref "${SOURCE_REF}"For CLI binaries the signer workflow is cli.yml:
gh attestation verify /tmp/ocm/ocm-linux-amd64 \
--owner open-component-model \
--signer-workflow open-component-model/open-component-model/.github/workflows/cli.yml \
--source-ref "${SOURCE_REF}"To pin a single build instead of a branch, use --source-digest <commit sha>,
which is what the release workflow does.
SBOM and OpenVEX Attestations
Besides build provenance, the release pipeline attests an SPDX SBOM to every CLI
binary and to both OCI images (one per platform), and attests the OpenVEX
documents to the ocm-linux-amd64 and ocm-linux-arm64 binaries and to the CLI,
slim CLI and controller images (per platform manifest and index). Only those two
build configurations are scanned, so Darwin and Windows binaries carry an SBOM
but no OpenVEX attestation. The images are scanned with those same documents.
Select the attestations by predicate type:
# SBOM (SPDX 2.3) of an image
gh attestation verify "oci://ghcr.io/open-component-model/cli:${VERSION}" \
--owner open-component-model \
--predicate-type https://spdx.dev/Document/v2.3 \
--format json --jq '.[].verificationResult.statement.predicate.name'
# OpenVEX of a Linux binary, signed by pipeline.yml
gh attestation verify /tmp/ocm/ocm-linux-amd64 \
--owner open-component-model \
--predicate-type https://openvex.dev/ns/v0.2.0 \
--signer-workflow open-component-model/open-component-model/.github/workflows/pipeline.yml \
--source-ref "${SOURCE_REF}" \
--format json --jq '.[].verificationResult.statement.predicate.statements'SBOMs and VEX documents are not SLSA provenance; they are signed by the same workflows and verified the same way. Before promoting a release the workflow verifies the OpenVEX attestation of both scanned Linux binaries and of all three images; the SBOM attestations are not part of that gate. The same documents are also release assets and resources of the OCM component versions; see EU Cyber Resilience Act: SBOMs and VEX Documents.
Permissions
The workflows that generate attestations require these token permissions:
| Permission | Purpose |
|---|---|
id-token: write | Request a GitHub Actions OIDC token used as the Sigstore signing identity |
attestations: write | Store the attestation in the repository’s attestation ledger |
artifact-metadata: write | Create the artifact metadata storage record when the attestation is pushed to a registry |
packages: write | Push the attestation to the container registry (OCI artifacts only) |
These permissions are declared on the attesting jobs in cli.yml,
pipeline.yml, release.yml and controller-chart-final.yml, and are
forwarded to reusable workflows through the permissions block of the caller.
Known Gaps
OCM does not claim SLSA certification or formal conformance. The following gaps exist:
| Gap | Detail |
|---|---|
| Push-to-main images and chart are Build L2 | When pipeline.yml runs as a top-level workflow (push to main), it signs the image and chart attestations itself, which GitHub rates Build L2. Only release builds, where release.yml calls pipeline.yml as a reusable workflow, reach Build L3. CLI binaries are attested in the reusable cli.yml on every non-PR build. |
| Shared Go build cache | SLSA Build L3 requires that one build cannot inject entries into a cache another build uses. cli.yml uses actions/setup-go with its default Go build cache, so release builds restore caches written by earlier default-branch builds. Pull requests from forks cannot write those caches, and Go’s build cache is keyed by input hashes, but the cache is still shared between builds. Release builds without the cache would close this. |
| Image provenance is signed in the publish job | The images are built in cli.yml and kubernetes-controller.yml and passed as workflow artifacts to the publish_* jobs of pipeline.yml, which push and attest them. The provenance therefore describes the pipeline.yml run as a whole, not the individual build job. |
| OCM component versions have no GitHub attestation | OCM component versions (ocm.software/ocm, ocm.software/cli, ocm.software/kubernetes/controller) are signed with keyless Sigstore through the OCM CLI’s signing handler, see Component Version Signatures, not attested with actions/attest-build-provenance. The signature ties the component version to a GitHub Actions OIDC identity and covers every resource digest in the descriptor, but it is not SLSA Build provenance: it says who signed what, not how it was built. |
| SLSA Source track not assessed | SLSA v1.2 adds a Source track for the integrity of the source revision. OCM has not assessed it, and the repository settings it depends on, such as branch protection, are not visible in the repository content. |
Report a supply-chain vulnerability through the security policy (GitHub private vulnerability reporting, or email to the TSC) — not in a public issue. Non-sensitive gaps in what this page documents can go to GitHub issues.