Repository navigation
Commit bf67397
ci: limit the PR triage job token to read-only
The PR triage job runs under pull_request_target on every new pull request, including ones from forks, and nothing in it uses the job token's pull-requests write grant, since the triage script signs in with the ADK_TRIAGE_AGENT secret, so the grant only gave a compromised step the power to edit pull requests. Drops that grant so the job token can only read repository contents, and fixes the comment that said this token does the assigning.
Co-authored-by: George Weale <[email protected]>
PiperOrigin-RevId: 10068054281 parent da35ca7 commit bf67397
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments