Skip to content

ci: grant the check job permission to publish its audit result - #204

Merged
Gbemi-programmer merged 1 commit into
mainfrom
ci/audit-check-permissions
Aug 30, 2026
Merged

ci: grant the check job permission to publish its audit result#204
Gbemi-programmer merged 1 commit into
mainfrom
ci/audit-check-permissions

Conversation

@Gbemi-programmer

@Gbemi-programmer Gbemi-programmer commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Every push to main has been failing — 5030d26, 86ab0d8, 0d33d07, dce835f, 85671a7 — and none of them because of a vulnerability.

The audit itself is clean:

"vulnerabilities":{"found":false,"count":0,"list":[]}
No vulnerabilities were found
##[error]Resource not accessible by integration - .../checks/runs#create-a-check-run

rustsec/audit-check@v2 publishes its result as a check run. ci.yml declares no permissions:, so the job inherits a read-only GITHUB_TOKEN and the API call is refused after the audit has already passed.

pull_request runs were unaffected, which is why this only ever showed up post-merge and never blocked a PR.

Verifying

The failing path is the push event, so this PR's own run cannot exercise it — a green run here only shows nothing regressed. The real confirmation is the push run on main after merge.

Unrelated and left alone: RUSTSEC-2024-0436 (paste unmaintained) is reported informationally and does not fail the build.

Every push to main has gone red since at least 85671a7, and not because
anything is vulnerable — the audit reports "No vulnerabilities were
found" and then rustsec/audit-check fails trying to create a check run:
"Resource not accessible by integration".

ci.yml declares no permissions, so the job inherits a read-only
GITHUB_TOKEN. pull_request runs were unaffected, which is why this only
ever showed up after a merge.
@Gbemi-programmer
Gbemi-programmer force-pushed the ci/audit-check-permissions branch from 74e93aa to dbdd270 Compare August 30, 2026 16:03
@Gbemi-programmer
Gbemi-programmer merged commit b287680 into main Aug 30, 2026
2 checks passed
@Gbemi-programmer
Gbemi-programmer deleted the ci/audit-check-permissions branch August 30, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant