Commit 439b35f
ci(test): skip test-trigger-other-job on fork PRs
The test-trigger-other-job job runs `gh workflow run`, which requires
`actions: write` on the GITHUB_TOKEN. PRs from forks receive a
read-only token by default, so this job has been failing on every
fork-originated PR with:
could not create workflow dispatch event: HTTP 403:
Resource not accessible by integration
Examples include #15 (dependabot) and any contributor PR.
Skip this job when the PR head is in a different repository than the
base. The job continues to run on PRs from same-repo branches and on
direct pushes, where the token has the required permissions.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 7247d00 commit 439b35f
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
| |||
0 commit comments