Commit 459c986
committed
ci: grant id-token permission for Codecov OIDC
The conditional use_oidc input made the action request an OIDC token, but
id-token is never part of the default GITHUB_TOKEN scope, so the exchange
failed with 'Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable' and
took the whole PHPUnit job down with it (fail_ci_if_error does not cover an
unhandled error inside the action). Request id-token: write explicitly, plus
contents: read since naming a job-level permissions block drops the rest.1 parent 00eed4b commit 459c986
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
| |||
0 commit comments