Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 00d2c85

Browse files
committed
fix(ci): give the GHCR build step an id so attestation can resolve the digest
- attestation step referenced `steps.push.outputs.digest`, but the build/push step had no `id: push`, so subject-digest resolved empty and `attest-build-provenance` errored out with "One of subject-path or subject-digest must be provided" - adding `id: push` exposes the digest output from `docker/build-push-action@v6` - GHCR attestations are kept (unlike Docker Hub's) because GitHub surfaces them in the package UI and they integrate with native build provenance Signed-off-by: Sven Kanoldt <[email protected]>
1 parent 38228c3 commit 00d2c85

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/publish-to-ghcr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
uses: docker/setup-buildx-action@v3
4242

4343
- name: Build and push Docker image
44+
id: push
4445
uses: docker/build-push-action@v6
4546
with:
4647
platforms: linux/amd64,linux/arm64

0 commit comments

Comments
 (0)