Skip to content
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

allow to pass a list of docker images to attest #454

Open
caarlos0 opened this issue Jan 23, 2025 · 1 comment
Open

allow to pass a list of docker images to attest #454

caarlos0 opened this issue Jan 23, 2025 · 1 comment

Comments

@caarlos0
Copy link

Hey!

So, I was thinking it would make things a lot easier if we could do this:

      - uses: actions/attest-build-provenance@v2
        id: attest
        with:
          subject-images: |
             registry/image:tag@digest
             registry/image2:tag@digest
             another-registry/image2:tag@digest
          push-to-registry: true

The list could then be built on-the-fly if you're using, for example, GoReleaser:

      - run: |
          jq -r '.[] | select(.type | startswith("Published Docker")) | .name + "@" + .extra.Digest' ./dist/artifacts.json >./dist/docker-images
          echo "IMAGES=$(cat ./dist/docker-images)" >> $GITHUB_OUTPUT
      - uses: actions/attest-build-provenance@v2
        id: attest
        with:
          subject-images: |
            ${{ IMAGES }}
          push-to-registry: true

I think this would make an awesome addition, and would make attestation as lot easier as well.


For disclosure: I'm the author of GoReleaser.

@caarlos0
Copy link
Author

PS: if this is something you're interested in, I'm happy to try and contribute it, and/or test it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant