Commit 926b5db
committed
ci: skip auto-assign for bot-authored pull requests
GitHub cannot assign bot accounts, so every Dependabot PR made the
Auto Assign PR workflow POST {"assignees":["dependabot[bot]"]} and
receive 403 Forbidden, leaving a failing check unrelated to the change
under review.
Guard the job on the author type so it runs only for human authors, and
grant `issues: write` — addAssignees belongs to the issues API and was
not covered by the existing `pull-requests: write` grant.1 parent 9beb8b4 commit 926b5db
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
0 commit comments