Repository navigation
ci: ratchet CodeQL findings via pawl - #52
Merged
Merged
Conversation
Separate pawl.codeql.yaml config, kept apart from pawl.yaml/ci.yml so a missing SARIF file here never affects the unrelated self-gate. Each codeql.yml matrix leg runs pawl check --only against its own language's SARIF output. No baseline yet — pawl.codeql.snapshot.json still needs to be recorded from a real CodeQL run before check will pass.
pawl CI ·
|
Confirmed via the Code Scanning API (results_count: 0 for both go and javascript-typescript, on this PR's merge ref and on main's latest analyzed commit) rather than assumed.
codeql-action writes the file named after the CodeQL language id
("javascript"), not the matrix value ("javascript-typescript") — the
first real run's Analyze step log confirmed this
(sarif-results/javascript.sarif). The go leg happened to match by
coincidence since "go" is both the matrix value and the language id.
lbb00
marked this pull request as ready for review
September 1, 2026 12:41
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
pawl.codeql.yaml: a standalone pawl config with onesarif-builtin dimension per CodeQL matrix language (codeql-go,codeql-javascript-typescript), kept separate frompawl.yaml/ci.ymlso it can't affect the existing self-gate.codeql.yml'sanalyzestep now writes SARIF to a fixedsarif-results/path; each matrix leg runspawl check -c pawl.codeql.yaml --only codeql-${{ matrix.language }}afterward.pawl.codeql.snapshot.json) seeded at 0 findings for both languages, confirmed via the real Code Scanning API results on this PR's own CodeQL run (results_count: 0for both) rather than assumed.javascript), not the matrix value (javascript-typescript);go's leg happened to match by coincidence.Test plan
pawl record→ cleancheck(exit 0) → injected regression →checkcorrectly fails (exit 1).codeql.ymlrun on this PR: bothAnalyze (go)andAnalyze (javascript-typescript)jobs pass end to end with the recorded baseline.