Docker container provenance (#3736)

This commit is contained in:
Pavel Iakovenko
2025-03-10 20:45:37 +00:00
committed by GitHub
parent de51cd0ed6
commit a84e1c2b15
3 changed files with 10 additions and 71 deletions

View File

@@ -291,6 +291,8 @@ jobs:
permissions:
contents: read
packages: write
id-token: write
attestations: write
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository_owner }}/actions-runner
@@ -336,3 +338,10 @@ jobs:
org.opencontainers.image.source=${{github.server_url}}/${{github.repository}}
org.opencontainers.image.description=https://github.com/actions/runner/releases/tag/v${{ steps.image.outputs.version }}
org.opencontainers.image.licenses=MIT
- name: Generate attestation
uses: actions/attest-build-provenance@v2
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.build-and-push.outputs.digest }}
push-to-registry: true