Repository navigation
Commit dbcc398
authored
fix(ci): switch assign-reviewers workflow to pull_request trigger (#9971)
Migrates .github/workflows/assign-reviewers.yml from pull_request_target
to pull_request ahead of GitHub's default pull_request_target Actions
event policy enforcement on public repositories.
### Changes
- Replace on: pull_request_target with on: pull_request and remove the
now-unneeded zizmor: ignore[dangerous-triggers] annotation.
- Guard the assign-reviewers job to skip fork PRs (head.repo.full_name
== github.repository) and Dependabot PRs (pull_request.user.login !=
'dependabot[bot]'), since GITHUB_TOKEN is read-only for those
pull_request runs; those PRs fall back to .github/CODEOWNERS team
reviewers.1 parent f6069d9 commit dbcc398
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 4 | + | |
8 | 5 | | |
9 | 6 | | |
10 | 7 | | |
| |||
18 | 15 | | |
19 | 16 | | |
20 | 17 | | |
21 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
0 commit comments