Skip to content

Commit 6bdfbae

Browse files
maresbricardoV94
authored andcommitted
Don't attest from forks
1 parent 35e87e0 commit 6bdfbae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/pypi.yml

+6
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737

3838
- name: Attest GitHub build provenance
3939
uses: actions/attest-build-provenance@v2
40+
# Don't attest from forks
41+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
4042
with:
4143
subject-path: dist/*.tar.gz
4244

@@ -82,6 +84,8 @@ jobs:
8284

8385
- name: Attest GitHub build provenance
8486
uses: actions/attest-build-provenance@v2
87+
# Don't attest from forks
88+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
8589
with:
8690
subject-path: ./wheelhouse/*.whl
8791

@@ -117,6 +121,8 @@ jobs:
117121
118122
- name: Attest GitHub build provenance
119123
uses: actions/attest-build-provenance@v2
124+
# Don't attest from forks
125+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
120126
with:
121127
subject-path: dist/*.whl
122128

0 commit comments

Comments
 (0)