Skip to content

Commit 5dff931

Browse files
committed
Skip CI for fork pull requests
Prevents workflow runs from outside contributors. PRs from repo members and pushes to main still trigger CI.
1 parent 00ec34f commit 5dff931

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ concurrency:
1111

1212
jobs:
1313
test:
14+
# Only run for pushes or PRs from within the repo (not forks)
15+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
1416
runs-on: ubuntu-latest
1517
strategy:
1618
matrix:

0 commit comments

Comments
 (0)