-
Notifications
You must be signed in to change notification settings - Fork 10
feat: add container image provenance attestation to shared workflow #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1a97874
d58870c
bca2019
8d057e5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -128,6 +128,7 @@ jobs: | |
| packages: write | ||
| contents: read | ||
| pull-requests: read | ||
| attestations: write | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Verify caller permissions — This is a reusable workflow ( If a caller doesn't grant it, the attest step fails with a 403 when persisting the attestation to the GitHub attestations API — and it would only surface on a real Please confirm the callers already grant
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Checked all 7 callers, none of them currently grant attestations: write. Will add it to all of them. Also noticed node-agent uses a local copy of the workflow instead of the shared one so it will need a separate update. Should I open separate PRs per repo or is there a preferred way to batch them? |
||
|
|
||
| steps: | ||
| # - name: Exit if not on master branch | ||
|
|
@@ -167,6 +168,7 @@ jobs: | |
| password: ${{ secrets.QUAYIO_REGISTRY_PASSWORD }} | ||
|
|
||
| - name: Build and push | ||
| id: build | ||
| uses: docker/build-push-action@v6 | ||
| with: | ||
| context: . | ||
|
|
@@ -178,6 +180,13 @@ jobs: | |
| cache-to: type=gha,mode=max | ||
| push: true | ||
|
|
||
| - name: Attest image provenance | ||
| uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4.1.0 | ||
| with: | ||
| subject-name: ${{ inputs.IMAGE_NAME }} | ||
| subject-digest: ${{ steps.build.outputs.digest }} | ||
| push-to-registry: true | ||
|
Varadraj75 marked this conversation as resolved.
|
||
|
|
||
| - name: Install cosign | ||
| uses: sigstore/cosign-installer@main | ||
| with: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.