Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
ci: attach an SBOM attestation to published images (#707)
Yudhi Armyndharisd87d76c0e0f4
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 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: truecache-from: type=ghacache-to: type=gha,mode=maxdiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 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: truecache-from: type=ghacache-to: type=gha,mode=maxdiff --git a/CHANGELOG.md b/CHANGELOG.mdindex 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.0on one architecture (a clean build can still produce a native-dep/Chromium SIGTRAP on arm64) cannotship 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