Repository navigation
fix(ci): dedupe govulncheck SARIF stacks via ci:vulncheck mage target - #3347
Conversation
govulncheck can emit identical stack objects within a result, but the SARIF schema requires them to be unique, so GitHub code scanning rejected the upload even though the scan itself succeeded. Add ci:vulncheck, which runs govulncheck and removes exact duplicate stacks before atomically writing the report. Failed scans and malformed or empty output fail the target and leave any existing report untouched. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Tip Atmos Pro
No affected stacks workflow was detected for this pull request. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
⛔ Files ignored due to path filters (1)
📒 Files selected for processing (13)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe change adds a Mage-based ChangesSARIF vulnerability scan
CI and dependency updates
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix · Severity of issue fixed: Low Sequence Diagram(s)sequenceDiagram
participant CodeQL as CodeQL workflow
participant Mage as CI.Vulncheck
participant Scan as vulncheck.Scan
participant Tool as govulncheck
participant Dedupe as DedupeStacks
participant Report as SARIF report
CodeQL->>Mage: invoke vulncheck target
Mage->>Scan: pass output path and context
Scan->>Tool: run SARIF scan
Tool-->>Scan: return SARIF output
Scan->>Dedupe: normalize duplicate stacks
Dedupe-->>Scan: return normalized SARIF
Scan->>Report: replace report after successful scan and normalization
Suggested labels: Suggested reviewers: Merge Risk: ⚪ Minimal · up to The new scan target and upload path are aligned. No concrete issue currently blocks merging; the full scan and upload still need CI validation. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)✅ Passed checks (4 passed)Full details: Docstring CoverageExplanation Docstring coverage is 25.81% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 31 functions across 5 files. (8 skipped: 8 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Dependency Review✅ No vulnerabilities or license issues found.Scanned Files
|
|
Warning SHA Pin Verification Passed — with documented exceptionsAll 239 third-party action reference(s) are covered, but 2 rely on a documented allowlist entry in
See the action run for full details. |
|
Important Cloud Posse Engineering Team Review RequiredThis pull request modifies files that require Cloud Posse's review. Please be patient, and a core maintainer will review your changes. To expedite this process, reach out to us on Slack in the |
The pin comment used the floating `v8` tag, which upstream moved from v8.0.1 to v8.0.2, so verify-sha-pinning reported a SHA mismatch. Pin to the exact v8.0.2 tag so the check no longer drifts. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…-cache Go 1.26.9 and golang.org/x/net 0.60.0 fix the HTTP/2 vulnerabilities GO-2026-6603, -6610, -6611, -6612 and -6617 that Scorecard reports. The x/net bump also moves x/crypto, x/sync, x/sys, x/term, x/text and x/mod forward by one release each. setup-go-cache now passes inputs.cache to the shell through env instead of interpolating it into the script, which resolves the Semgrep run-shell-injection finding. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
🚀 Go Version Change Detected This PR changes the Go version:
Tip Upgrade Checklist
This is an automated comment from the Go Version Check action. |
|
CodeRabbit (@coderabbitai) review |
✅ Action performedReview finished.
|
Codecov Report❌ Patch coverage is ❌ Your patch check has failed because the patch coverage (78.50%) is below the target coverage (85.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #3347 +/- ##
==========================================
- Coverage 84.82% 84.80% -0.02%
==========================================
Files 2135 2138 +3
Lines 208579 208686 +107
==========================================
+ Hits 176917 176975 +58
- Misses 23371 23401 +30
- Partials 8291 8310 +19
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
Tip Atmos Pro
No affected stacks workflow was detected for this pull request. |
|
Tip Atmos Pro
No affected stacks workflow was detected for this pull request. |
Take main's ci:vulncheck mage target (#3347) over this branch's jq/shell SARIF dedupe, and main's download-artifact v8.0.2 pin over the v8.0.1 comment-only fix. Drop the superseded jq script, its shell test and its fix doc. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Take main's download-artifact v8.0.2 pin and its ci:vulncheck SARIF dedupe (#3347), dropping the equivalent changes cherry-picked earlier. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
These changes were released in v1.231.1-rc.0. |
what
ci:vulncheck <output>Mage target that runsgovulncheck -format sarif ./...and removes exact duplicate stack objects from the report before writing it.govulncheckjob incodeql.ymlat the target instead of redirecting the scanner's output straight intogovulncheck.sarif.internal/ci/vulncheckpackage with unit tests; the target is listed inmagefiles/README.md.why
stacksentries, and the SARIF schema requires that array to hold unique objects. Code scanning therefore received nothing.jq, because the repo keeps CI logic of this size in unit-tested Go. A shell version also could not distinguish "no findings" from "scanner produced nothing", which matters when the output is uploaded to code scanning.references
jq+ shell-script version of the same fix (scripts/dedupe-sarif-stacks.jq,scripts/test-dedupe-sarif-stacks.sh, thecodeql.ymlstep, anddocs/fixes/2026-10-08-govulncheck-sarif-duplicate-stacks.md). Those pieces should be dropped from fix(config): preserve imported auth identities when main config defines identities #3339 once this lands, so they do not conflict oncodeql.yml.govulncheckthroughgo tool mage ci:vulncheck.🤖 Generated with Claude Code
Summary by CodeRabbit