Skip to content

Commit 96e8b32

Browse files
authored
selftest: restrict to non-PRs and PRs on non-forks (#34)
* selftest: restrict to non-PRs and PRs on non-forks Signed-off-by: William Woodruff <[email protected]> * selftest: fix YAML Signed-off-by: William Woodruff <[email protected]> Signed-off-by: William Woodruff <[email protected]>
1 parent 33e8099 commit 96e8b32

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/selftest.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ permissions:
1313
jobs:
1414
selftest:
1515
runs-on: ubuntu-latest
16+
if: (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork
1617
steps:
1718
- uses: actions/checkout@v3
1819
- name: Sign artifact and publish signature
@@ -23,6 +24,7 @@ jobs:
2324

2425
selftest-staging:
2526
runs-on: ubuntu-latest
27+
if: (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork
2628
steps:
2729
- uses: actions/checkout@v3
2830
- name: Sign artifact and publish signature
@@ -34,6 +36,7 @@ jobs:
3436

3537
selftest-glob:
3638
runs-on: ubuntu-latest
39+
if: (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork
3740
steps:
3841
- uses: actions/checkout@v3
3942
- name: Sign artifacts and publish signatures
@@ -45,6 +48,7 @@ jobs:
4548

4649
selftest-upload-artifacts:
4750
runs-on: ubuntu-latest
51+
if: (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork
4852
steps:
4953
- uses: actions/checkout@v3
5054
- name: Sign artifact and publish signature
@@ -57,6 +61,7 @@ jobs:
5761

5862
selftest-custom-paths:
5963
runs-on: ubuntu-latest
64+
if: (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork
6065
steps:
6166
- uses: actions/checkout@v3
6267
- name: Sign artifact and publish signature
@@ -71,6 +76,7 @@ jobs:
7176
# NOTE(alex): `sigstore-python` doesn't support verifying URI SANs yet.
7277
# selftest-verify-san:
7378
# runs-on: ubuntu-latest
79+
# if: (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork
7480
# steps:
7581
# - uses: actions/checkout@v3
7682
# - name: Sign artifact and publish signature
@@ -83,6 +89,7 @@ jobs:
8389

8490
selftest-verify-issuer:
8591
runs-on: ubuntu-latest
92+
if: (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork
8693
steps:
8794
- uses: actions/checkout@v3
8895
- name: Sign artifact and publish signature
@@ -95,6 +102,7 @@ jobs:
95102

96103
selftest-identity-token:
97104
runs-on: ubuntu-latest
105+
if: (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork
98106
steps:
99107
- uses: actions/checkout@v3
100108
- name: Get OIDC token

0 commit comments

Comments
 (0)