Skip to content

Commit 3f17bcf

Browse files
authored
chore(ci): Disable attestation for fork PRs
1 parent 08b5d94 commit 3f17bcf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/build-test-deploy.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
on:
22
push:
3-
branches: [main]
4-
tags: ["*"]
53
pull_request:
64
branches: [main]
75
release:
@@ -40,7 +38,8 @@ jobs:
4038
fetch-depth: 0
4139
- uses: hynek/build-and-inspect-python-package@v2
4240
with:
43-
attest-build-provenance-github: 'true'
41+
# Use attestation only if the action is triggered inside the repo
42+
attest-build-provenance-github: ${{ github.event.action == 'published' || github.event_name == 'push' }}
4443

4544
test:
4645
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)