Skip to content

Commit 22c3b74

Browse files
authored
fix: skip attestation tests on pr builds (#297)
1 parent 074894d commit 22c3b74

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/action-e2e.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ jobs:
8484
test-attestations:
8585
# Test that attestations are created when `attest` is set to true
8686
runs-on: ubuntu-latest
87+
# Attestations cannot be used from a fork https://github.com/actions/attest-build-provenance/issues/99
88+
if: ${{ github.repository == 'bazel-contrib/publish-to-bcr' }}
8789
permissions:
8890
id-token: write
8991
attestations: write
@@ -117,6 +119,8 @@ jobs:
117119
test-multi-module:
118120
# Tests a multi-module publish
119121
runs-on: ubuntu-latest
122+
# Attestations cannot be used from a fork https://github.com/actions/attest-build-provenance/issues/99
123+
if: ${{ github.repository == 'bazel-contrib/publish-to-bcr' }}
120124
permissions:
121125
id-token: write
122126
attestations: write

0 commit comments

Comments
 (0)