You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: scope the ThreatCrush PR comment to the files the PR changes
The scan runs against the whole tree and the comment reported the whole
tree, so every pull request got the same table regardless of what it
touched. #408 changes five files under the games code and drew 53 rows
about `install.sh`, the service worker, the DNS client and the Moshpit
SQL helpers — nothing it went near.
A comment that says the same thing on every PR says nothing. Reviewers
learn to scroll past it, and the finding that *is* theirs scrolls past
with it.
The tree is still scanned in full and the full SARIF still goes to the
Security tab, so coverage is unchanged; only what the comment talks
about is narrower. The findings outside the diff are counted and
pointed at rather than dropped, so "no findings" can never be misread
as "the repository is clean".
Scoping fails *open*: if the changed-file list cannot be read, every
finding is shown and the header says so. That is the opposite of the
rest of this workflow, which treats an unknown as NOT RUN — the risk
there is claiming a clean scan, and the risk here is hiding a real
finding behind an empty scope.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments