fix(ci): scan-and-report — skip verisimdb dispatch when VERISIMDB_PAT is absent#156
Merged
Merged
Conversation
…PAT; surface HTTP status on rejection VERISIMDB_PAT is declared optional (required: false), but consumers without it fell through to GITHUB_TOKEN, which can never dispatch to another repo — so every such consumer's Security Scan went red at the dispatch step with a bare curl exit 22 (seen on echidna run 28842498410 once the argv overflow from #155 was out of the way). - No PAT -> notice + skip dispatch; the scan result itself still gates. - With PAT -> capture and report the HTTP status + response body on rejection instead of a silent -f failure. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
hyperpolymath
added a commit
to hyperpolymath/echidna
that referenced
this pull request
Jul 7, 2026
…urity Scan green without VERISIMDB_PAT) (#309) Follow-up to #307: with the argv overflow gone, Security Scan on main still failed at the dispatch step (run 28842498410) — echidna carries no `VERISIMDB_PAT` and the `GITHUB_TOKEN` fallback can never `repository_dispatch` to `verisimdb-data` (curl exit 22). hyperpolymath/panic-attack#156 makes the optional secret genuinely optional (`::notice` + skip) and prints the HTTP status/response on real rejections. This pins forward to its merge commit `6693e01`. Note for owner: if the estate wants echidna's scan results flowing into verisimdb-data again, mint/restore `VERISIMDB_PAT` (part of the PAT-rotation backlog) — the workflow will then dispatch again automatically. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
VERISIMDB_PATis declared optional inscan-and-report.yml, but consumers without it fall back toGITHUB_TOKEN— which is scoped to the calling repo and can never fire arepository_dispatchatverisimdb-data. Result: every consumer without the PAT gets a red Security Scan at the dispatch step (barecurlexit 22), even though the scan itself passed. Seen on echidna run 28842498410 immediately after #155 removed the argv overflow that had been masking it.::notice+ skip the dispatch step; the scan result still gates the job.%{http_code}and print the API response body on rejection, so a real dispatch failure is diagnosable.Verification
actionlintclean.DISPATCH_TOKEN→ notice + exit 0).🤖 Generated with Claude Code