Building a CRA-Ready CI/CD Pipeline: Provenance, Signing and Release Evidence
How to turn an ordinary CI/CD pipeline into an evidence-producing software delivery system.

On this page
Your CI/CD pipeline is green. Your container image is signed. Your SBOM lists hundreds of software components. Your vulnerability scanner reports no critical findings.
Now demonstrate why version 1.4.2 of your product was considered acceptable for release six months ago. Not the current version. Not the latest vulnerability scan. The exact artifact your customer received.
Can you identify its dependencies, establish where it was built, verify its integrity and retrieve the security decisions that authorised its release? That is a different engineering problem.
For software manufacturers within the scope of the European Cyber Resilience Act (CRA), product security is a lifecycle responsibility. CI/CD pipelines can support that responsibility by systematically generating and preserving technical evidence.
The objective is not to build a compliant pipeline. It is to build a pipeline that makes product security decisions traceable, verifiable and auditable.
From software delivery to evidence production
A conventional CI/CD pipeline transforms source code into a deployable artifact. An evidence-producing pipeline generates two distinct outputs:
- The software artifact delivered to the customer.
- The evidence associated with its construction, security assessment and release.
The relationship between these outputs matters more than the individual tools.
An SBOM stored somewhere in a CI job is useful. An SBOM cryptographically associated with the exact artifact delivered to a customer is considerably more useful.
For the following examples, we will assume a containerised software product distributed as an OCI image. The same principles apply to binaries, installation packages and firmware.
Establish the build trust boundary
Before generating evidence, establish what can be trusted about the build itself.
A pipeline executing arbitrary code on an uncontrolled runner cannot become trustworthy simply by signing its output. Start with a small set of engineering controls:
- Pin dependencies, build tools and base images.
- Protect release branches and workflow definitions.
- Separate untrusted pull request execution from release workflows.
- Restrict registry and signing permissions.
- Prefer short-lived workload identities over persistent credentials.
For example, instead of referencing a mutable container tag:
FROM alpine:latestReference a verified image digest:
FROM alpine@sha256:<verified-digest>Apply the same principle to CI/CD actions, dependency lockfiles and build tooling. Once the build completes, identify its output by digest:
IMAGE="registry.example.com/product@sha256:<digest>"Unlike a version tag, the digest identifies specific content. This becomes the common identifier for the SBOM, provenance, signatures and release decisions generated by subsequent stages. Pinning build inputs improves build traceability and repeatability. It does not, by itself, establish bit-for-bit reproducibility.
Generate an SBOM from the released artifact
A dependency lockfile describes what the application intends to consume. An SBOM should describe what the product actually contains.
The distinction matters because a container image may include operating system packages, runtime libraries and transitive dependencies that are absent from the application repository. Using Syft, generate a CycloneDX SBOM directly from the immutable image:
syft "$IMAGE" -o cyclonedx-json=sbom.cdx.jsonThe resulting document contains structured information about detected software components, including their versions and identifiers. Preserve this document alongside the release evidence, rather than treating it as a disposable CI artifact.
Under Annex I, Part II of the CRA, manufacturers are required to document software components and vulnerabilities, including through a machine-readable SBOM covering at least top-level dependencies.
However, generating an SBOM does not establish that the inventory is complete or that its components are secure. Inventory coverage must be evaluated against the actual product architecture.
Establish build provenance
An SBOM tells us what is inside an artifact. It does not tell us who built it, which source revision was used or whether the build originated from an authorised pipeline. This is the purpose of build provenance.
The Supply-chain Levels for Software Artifacts (SLSA) framework provides a structured approach to expressing and evaluating such information. A provenance attestation should allow a verifier to establish:
- Which source repository and revision were used.
- Which build platform produced the artifact.
- Which build process was executed.
- Which artifact digest resulted from that execution.
Prefer provenance generated by the trusted build platform itself over metadata assembled retrospectively by an application-controlled script. A signed statement is only as trustworthy as the process that produced it.
SLSA provides engineering assurance mechanisms. It is not a CRA conformity assessment framework. See the SLSA Build Provenance specification for the underlying attestation model and its verification requirements.
Sign the artifact — and enforce verification
Artifact signing is frequently implemented as the final step of a CI/CD pipeline. Verification, however, is often left optional. That defeats much of its purpose.
Using Cosign and Sigstore, a release workflow can sign a container image using an OIDC-backed workload identity:
cosign sign --yes "$IMAGE"A downstream consumer must verify not only the cryptographic signature but also whether the signing identity is authorised to produce release artifacts. For example, assume that only the release workflow of a specific GitHub repository, executed from its main branch, is authorised to sign production artifacts.
EXPECTED_WORKFLOW="https://github.com/example/product/.github/workflows/release.yml@refs/heads/main"
cosign verify "$IMAGE" \
--certificate-identity="$EXPECTED_WORKFLOW" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com"The verification checks three properties:
- Artifact integrity: the signature corresponds to the artifact being verified.
- Signing identity: the certificate identifies the expected repository, workflow and Git reference.
- Identity provider: the signing identity originates from the expected OIDC issuer.
An artifact signed by another repository, workflow or branch would be rejected under this policy, even if its signature were cryptographically valid.
The verification policy should be managed outside the unilateral control of the artifact producer, for example through a protected deployment repository or a centrally managed Kubernetes admission controller. Otherwise, a compromised pipeline could potentially redefine the identities trusted by its own verifier.
This establishes a separation between the authority to produce software and the authority to accept it.
However, a compromised but authorised release workflow can still produce correctly signed malicious software. Branch protection, provenance verification, vulnerability assessment and independent release approval remain complementary controls.
Signing establishes authenticity and integrity. It does not establish product security.
Turn vulnerability findings into security decisions
Generate a vulnerability assessment from the previously created SBOM:
grype sbom:sbom.cdx.json -o json > vulnerabilities.jsonGrype supports scanning existing CycloneDX and SPDX inventories. The resulting report represents the scanner’s findings at a particular point in time, based on its available vulnerability intelligence.
It is not a release decision.
Consider the following illustrative assessment:
| Finding | Severity | Assessment | Decision |
|---|---|---|---|
| Vulnerability A | Critical | Affected code is reachable | Block release |
| Vulnerability B | High | Affected functionality absent from product | Document assessment |
| Vulnerability C | Medium | Exploitability unresolved | Investigate before release |
The assessment should preserve the technical justification, supporting evidence, responsible reviewer and assessment date.
Under Annex I, Part I of the CRA, applicable product requirements include placing products on the market without known exploitable vulnerabilities.
A severity threshold is therefore not a sufficient substitute for assessing exploitability. Neither is an internal risk acceptance form a mechanism for overriding an applicable legal requirement.
The release gate must evaluate the security assessment, not merely count CVEs.
Build a release evidence manifest
At this point, the pipeline has generated several independent artifacts.
Without a common structure, they will eventually become another collection of JSON files distributed across CI job histories, registries and object storage buckets. Introduce a release evidence manifest that binds these records to the released artifact.
For example:
release:
product: example-product
version: 1.4.2
artifact_digest: "sha256:<image-digest>"
source_revision: "<git-commit-sha>"
evidence:
sbom:
format: cyclonedx
file: sbom.cdx.json
digest: "sha256:<sbom-digest>"
provenance:
format: slsa
file: provenance.json
digest: "sha256:<provenance-digest>"
vulnerability_assessment:
file: vulnerabilities.json
digest: "sha256:<report-digest>"
database_revision: "<database-revision>"
security_review:
file: security-review.json
digest: "sha256:<review-digest>"
test_report:
file: security-tests.json
digest: "sha256:<test-report-digest>"
approval:
decision: approved
reviewer: product-security-team
record: "REL-142"
record_digest: "sha256:<approval-digest>"
artifact_digest: "sha256:<image-digest>"
policy_revision: "<policy-revision>"This is an illustrative engineering format, not a regulatory or industry-mandated schema. The referenced approval record should identify the exact artifact and evidence revisions reviewed. The manifest itself should be signed by an authorised release identity.
For example:
cosign sign-blob release-evidence.yaml \
--bundle release-evidence.sigstore.jsonThe resulting bundle supports subsequent signature verification. Store the manifest, referenced evidence and verification material in durable, access-controlled storage with appropriate retention policies.
The objective is to reconstruct the release decision independently of the original CI/CD execution environment. Deleting a CI job must not mean deleting the product’s security history.
Make evidence verification a release gate
Generating evidence is only half of the implementation. The release process must reject artifacts that do not satisfy the evidence policy.
| Verification scenario | Expected behaviour |
|---|---|
| Artifact digest does not match | Reject |
| SBOM missing | Reject |
| SBOM modified after approval | Reject |
| Provenance originates from an unauthorised builder | Reject |
| Signature identity is unexpected | Reject |
| Vulnerability assessment incomplete | Block release |
| Approval references a different artifact | Reject |
| All required checks satisfied | Eligible for release |
These are proposed failure-injection scenarios for validating the pipeline, not results from an executed test suite.
The verifier should authenticate the manifest, check evidence digests, independently validate provenance and artifact signatures, and evaluate the release approval against the applicable security policy. Only then should the artifact be promoted from the candidate registry to its distribution location.
Promotion must preserve the artifact digest. Rebuilding the application after approval would invalidate the relationship between the reviewed evidence and the delivered software.
Build once. Assess once per evidence revision. Promote the verified artifact.
What does this actually contribute to CRA readiness?
The CRA does not prescribe a specific CI/CD platform, signing technology or supply-chain security framework. These are engineering mechanisms that can support selected regulatory requirements.
| Evidence | Engineering control | Remaining obligations |
|---|---|---|
| SBOM | Component identification | Inventory completeness and ongoing maintenance |
| Provenance | Build traceability | Secure development and production processes |
| Artifact signature | Authenticity and integrity | Secure distribution and update mechanisms |
| Vulnerability assessment | Vulnerability identification | Exploitability assessment and remediation |
| Security test reports | Product security verification | Adequate test coverage and regular review |
| Release approval | Accountable release decision | Product risk assessment and conformity assessment |
| Evidence manifest | Documentation traceability | Complete technical documentation |
Relevant regulatory provisions include Article 13, Article 31, Annex I and Annex VII of Regulation (EU) 2024/2847.
The architecture described here does not replace product-level cybersecurity risk assessment, coordinated vulnerability disclosure, post-market monitoring, security updates, reporting obligations or the applicable conformity assessment procedure. It also assumes that the product and manufacturer fall within the regulation’s scope. That determination must precede any product-specific compliance strategy.
A signed container image is not a declaration of conformity.
Conclusion
Most CI/CD pipelines are designed to answer a simple question: Can we ship this software?
An evidence-producing pipeline must answer a more demanding one: Can we demonstrate what we shipped, how it was produced, what we knew about its security and why its release was authorised?
The distinction becomes particularly important when a vulnerability is discovered months after distribution. At that point, the latest successful pipeline execution is largely irrelevant. What matters is the historical relationship between the affected component, the released artifact and the security decisions associated with it.
The objective is not to automate compliance. It is to make the technical evidence supporting compliance an ordinary, verifiable output of software delivery.


