Skip to content

Commit 27ac49f

Browse files
Merge pull request #69 from RonnyPfannschmidt/limit-attestation
Disable build attestations for PRs from forks
2 parents 6522881 + 3402322 commit 27ac49f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
id: baipp
2222
uses: hynek/build-and-inspect-python-package@v2
2323
with:
24-
attest-build-provenance-github: true
24+
attest-build-provenance-github: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
2525
env:
2626
SETUPTOOLS_SCM_OVERRIDES_FOR_INICONFIG: ${{ github.ref == 'refs/heads/main' && 'local_scheme="no-local-version"' || '' }}
2727

0 commit comments

Comments
 (0)