.github/workflows: don't publish provenance data for PRs

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso 2025-03-21 15:42:42 -04:00
parent d6d879133e
commit 4ec4dc3624
No known key found for this signature in database

View file

@ -74,6 +74,7 @@ jobs:
- name: Generate artifact attestation - name: Generate artifact attestation
uses: actions/attest-build-provenance@v2 uses: actions/attest-build-provenance@v2
if: ${{github.event_name == 'pull_request'}}
with: with:
subject-name: ghcr.io/techarohq/anubis subject-name: ghcr.io/techarohq/anubis
subject-digest: ${{ steps.build.outputs.digest }} subject-digest: ${{ steps.build.outputs.digest }}