Commit 47dd3d2
ci: grant unit-test workflow permission to comment on PRs
The Coverage report step (lucassabreu/comment-coverage-clover) creates a
comment on the pull request, which is a write operation. unit-test.yml
declared no permissions block, so the job received the repository default.
The job log for run 35718905177 records what the token actually held:
GITHUB_TOKEN Permissions
Contents: read
Metadata: read
Packages: read
All read, no write, so the POST to the issue-comments endpoint returned
403 "Resource not accessible by integration". Build, tests and the
dorny/test-reporter step all succeeded; only the coverage comment failed.
This affects every run since 2026-08-02, including on development and
master. The last successful run was 2026-07-29.
Declaring a permissions block sets unlisted scopes to none, so contents:
read is included for actions/checkout. checks: write is deliberately not
granted: the test-reporter step is currently succeeding without it.
Mirrors back-merge-pr.yml and sca-scan.yml, which already declare the same
two scopes.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent abb7104 commit 47dd3d2
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
0 commit comments