ci: add ThreatCrush security scan - #12
Merged
Merged
Conversation
Installs threatcrush-scan@1.0.0 from the sh1pt Actions Store. Scans pull requests for hardcoded credentials, injection, SSRF, unsafe deserialisation and dependency tampering; uploads SARIF to the Security tab. Report-only — it will not fail a pull request. Set the pack's failOn input to critical,high once the existing findings are triaged. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
vu1nz Security Review0 finding(s) in PR #? No security issues found. |
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
ThreatCrush Security Scan0 finding(s) No findings. |
Re-render at threatcrush-scan@1.0.1. The first run on this PR reported "0 findings" without scanning anything: the runner installed the published 0.2.2, which has no --format, and the resulting `unknown option` error exited 1 — the same code the CLI uses for a real findings result. See run 30803607991. The workflow now verifies the interface before scanning and treats the SARIF file as the only evidence a scan happened. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
ralyodio
marked this pull request as ready for review
August 3, 2026 10:21
The published 0.2.2 has no --format, so the previous version refused to run at all. It now converts the text output instead, fail-closed. Co-Authored-By: Claude Opus 5 (1M context) <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.
Sample install — the one you asked to see before the fleet rollout. Installs
threatcrush-scan@1.1.0from the sh1pt Actions Store.Scans PRs for hardcoded credentials, injection, SSRF, unsafe deserialisation, XXE and dependency tampering. Findings go to the Security tab as SARIF and to a PR comment; snippets are redacted, so no credential material reaches a CI log. Report-only — it will not fail a PR on findings.
Read this PR's CI history — it's the interesting part
Run 1 — green, and wrong. Reported
0 findings. The runner installed the published@profullstack/threatcrush@0.2.2, which has no--format:Commander exits
1— the same code the CLI uses for "findings at or abovefailOn". The step read a failure as a result, no SARIF was written, the empty-run fallback supplied one, and the comment declared the repo clean. A green check on a repository nothing had scanned.Run 2 — red, but the comment still lied. The new capability check failed the job correctly, yet the comment still said "0 findings": the report tested
status == "error", and a skipped step yields an empty string, so it fell through to the happy path.Run 3 — red and honest. "NOT RUN — the scan did not complete, so this diff was not examined." Correct, but useless: it refused to scan anything until a new CLI shipped.
Run 4 — green, and genuinely scanned. The workflow now detects the interface up front and converts
0.2.2's text output when--formatis missing:That
0 findingsis a real clean result — 5 files scanned, completion footer present — not the absence of one. The difference between run 1 and run 4 is the whole point.Coverage
The legacy converter is a stopgap.
0.2.2is a secrets scanner: 12.9% true-positive rate againstprofullstack/malware-test-prs, at 0.0% false positives.Once profullstack/threatcrush#73 is merged and published, the workflow picks the native
--format sarifpath automatically and coverage goes to 90.32% at the same 0.0% false-positive rate. No change needed here.🤖 Generated with Claude Code