ci(security): add SARIF reporting, gitleaks secret scanning, and Semgrep SAST pipeline (closes #1334) - #1433
Open
guptakumarranjeet150 wants to merge 1 commit into
Conversation
…rep SAST pipeline (closes LabsCrypt#1334) - Add gitleaks secret-scanning job with SARIF upload to GitHub Security tab - Add Semgrep SAST job (p/javascript, p/typescript, p/react, p/nodejs, p/owasp-top-ten, p/secrets rulesets) with SARIF upload - Add CodeQL analysis for javascript/typescript with security-extended queries - Upgrade cargo-audit job to emit SARIF and upload to Security tab - Remove duplicate cargo-audit steps that caused redundant CI runs - All SARIF uploads use github/codeql-action/upload-sarif@v3 with unique 'category' keys to populate the GitHub Security tab dashboard - Weekly cron schedule preserved (0 2 * * 0) for CVE re-scan Closes LabsCrypt#1334
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
Closes #1334 — Implements a comprehensive automated security scanning pipeline with SARIF reporting, secret leak detection, and static code analysis.
Changes to
.github/workflows/security.yml1. Dependency Vulnerability Scan (existing — cleaned)
npm audit --audit-level=highcargo-auditsteps that caused redundant CI runs2. Rust Cargo Audit with SARIF Upload (upgraded)
cargo install cargo-audit --version 0.22.0 --locked(pinned, cached)cargo-audit.sarifand uploads to GitHub Security tab viagithub/codeql-action/upload-sarif@v3withcategory: cargo-audit3. Secret Scanning — gitleaks (new)
gitleaks/gitleaks-action@v2scans full git history (fetch-depth: 0)category: gitleakscontinue-on-error: trueso CI does not hard-fail on missingGITLEAKS_LICENSEin forks4. Semgrep SAST (new)
p/javascript,p/typescript,p/react,p/nodejs,p/security-audit,p/owasp-top-ten,p/secretscategory: semgrep-sast5. CodeQL Multi-Language Analysis (restructured)
javascript,typescript(Rust removed to keep CodeQL DB valid)security-extended,security-and-qualitycategorytag in SARIF upload for clean Security tab groupingAcceptance Criteria
0 2 * * 0)Closes #1334