Skip to content

Commit 37dffc8

Browse files
authored
Skip integration tests on fork PRs (#68)
1 parent 07cad02 commit 37dffc8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ jobs:
5454
name: Test
5555
runs-on: ubuntu-latest
5656
timeout-minutes: 20
57+
# Integration tests push to the repo, which requires a token with write
58+
# access. Fork PRs only get a read-only GITHUB_TOKEN, so skip them here
59+
# and rely on merge_group to gate the merge.
60+
if: >-
61+
github.event_name != 'pull_request' ||
62+
github.event.pull_request.head.repo.full_name == github.repository
5763
permissions:
5864
contents: write # integration tests create and push temporary branches
5965
steps:

0 commit comments

Comments
 (0)