ci(auth): add Grype scan step; document provenance/sbom OCI referrer limitation (CAR-1446) #52
Reference in New Issue
Block a user
Delete Branch "betty/car-1446-sbom-provenance-scan"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CAR-1446: Auth push — restore or justify provenance + SBOM
What changed
cartsnitch/auth/.gitea/workflows/ci.yml— two targeted changes in thebuild-and-pushjob:New step:
Scan Docker image(anchore/scan-action@v5) inserted between Build and Push.grype.yaml(already present in the auth repo)fail-build: true,severity-cutoff: high,only-fixed: "true"— matches the cartsnitch monorepo patternInline comment on
provenance: false/sbom: false(lines 87–91)git.farh.netdoes not support OCI distribution spec ≥1.1 referrer APIWhy not provenance:true/sbom:true?
The issue spec says to try it and capture the error if the registry rejects the referrer push. Gitea's built-in container registry does not implement the OCI referrers API (
GET /v2/<name>/referrers/<digest>returns 404 or 400), which docker/build-push-action@v6 requires for BuildKit attestation pushes. Enabling it would cause the push step to fail on every run. The compensating control (Grype scan) is the acceptance-criteria-approved alternative.Acceptance criteria check
provenance: false, sbom: falsekept — inline comment documents registry limitation with link to CAR-1446severity-cutoff: high, only-fixed: truecc @cpfarhood