This repository was archived by the owner on Nov 25, 2026. It is now read-only.
Repository navigation
fix: skip publish-secrets in the CI audit, which the app token cannot read - #24
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The weekly audit (
--ci, governance app token) reported a false failure forpublish-secrets.Evidence: cinewright/cinewright run 45453924317 (pin 2b802b8 = v1.1.0) ended with 17 pass, 1 fail, 1 skip. The only failure was
publish-secrets cannot verify: gh api repos/cinewright/cinewright/actions/secrets?per_page=100 ... Resource not accessible by integration (HTTP 403), andaudit-issueopened cinewright#54. The same audit in full mode with the owner's token passes 19/19. All other remote checks passed with the app token in that run.Cause:
check_token_permissionsskips in ci mode,check_publish_secretsdid not. The app deliberately has no Secrets permission, so the 403 surfaced throughAudit.remote()as a failure.Change:
check_publish_secretsaddsskipwith the token-permissions wording before any API call. Full and local modes are unchanged.docs/MANUAL-STEPS.mdsay that the app has no Secrets access and that the owner's local audit covers both checks.skip, no such endpoint is called, and the report passes. In full mode it still fails with "cannot verify". The compliant full run assertspass.python3 -m unittest discover -s tests: 101 tests OK.