Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

ci: attach an SBOM attestation to published images (#707)

Yudhi Armyndharisd87d76c0e0f4
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 60f44d9b2..3737406b6 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -231,5 +231,10 @@ jobs:
platforms: ${{ env.DOCKER_PLATFORMS }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
+ # provenance is generated by default (build-push-action v7); pin it explicitly and opt into
+ # an SBOM attestation so each published image carries an in-toto SLSA provenance + SBOM pair,
+ # verifiable via `docker buildx imagetools inspect`.
+ provenance: true
+ sbom: true
cache-from: type=gha
cache-to: type=gha,mode=max
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 07bed0f03..157b02c1b 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -277,6 +277,11 @@ jobs:
platforms: ${{ env.DOCKER_PLATFORMS }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
+ # provenance is generated by default (build-push-action v7); pin it explicitly and opt into
+ # an SBOM attestation so each release image carries an in-toto SLSA provenance + SBOM pair,
+ # verifiable via `docker buildx imagetools inspect`.
+ provenance: true
+ sbom: true
cache-from: type=gha
cache-to: type=gha,mode=max
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d5b62b925..0cfda721d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -35,6 +35,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
on one architecture (a clean build can still produce a native-dep/Chromium SIGTRAP on arm64) cannot
ship under a release. The Release job waits on the new boot-smoke job.
+- **SBOM attestation on published images.** Each image built by CI and on release now carries an
+ in-toto SBOM attestation alongside the SLSA provenance that `docker/build-push-action` already
+ generates by default. Both are verifiable with
+ `docker buildx imagetools inspect ghcr.io/rmyndharis/openwa:<tag>`. Provenance is now also pinned
+ explicitly (`provenance: true`) so the attestation pair is self-documenting rather than reliant on
+ the action default.
+
### Fixed
- **OpenAPI export script under current env validation.** `scripts/export-openapi.ts` had been broken