feat(security): automated static security analysis & vulnerability sc… - #1597
Open
Joyful12-tech wants to merge 1 commit into
Open
Joyful12-tech wants to merge 1 commit into
Joyful12-tech wants to merge 1 commit into
Conversation
…anning pipeline Implements the full security scanning CI pipeline required by LabsCrypt#1334. Changes: - .github/workflows/security.yml: Complete rewrite with four jobs: 1. dependency-check — npm audit (root, frontend, backend workspaces) + cargo audit --deny warnings on contracts/ (removes duplicate job and duplicate rust-toolchain/cargo-audit-cache steps from the original) 2. secret-scan — gitleaks-action@v2 scanning full git history (fetch-depth 0) for accidentally committed secrets, tokens, and API keys 3. sast — semgrep-action@v1 with p/nodejs, p/react, p/typescript, p/rust, p/owasp-top-ten, p/javascript rule sets; uploads semgrep.sarif to the GitHub Security tab via codeql-action/upload-sarif 4. codeql-analysis — matrix over javascript and rust (typescript is not a valid standalone CodeQL language); SARIF uploaded automatically by codeql-action/analyze; queries: security-and-quality - All four jobs run on pull_request and on a weekly Sunday 02:00 UTC cron - All jobs fail-fast (no continue-on-error) so PRs are blocked on any finding - Least-privilege permissions; security-events:write only where SARIF is uploaded (secret-scan, sast, codeql-analysis) - SECURITY.md: Added 'Automated Security Scanning Pipeline' section documenting each scan, how to view SARIF results in the Security tab, how to handle dependency audit failures, how to respond to secret scan failures, how to suppress false positives responsibly, and the weekly CVE sweep cadence. Closes LabsCrypt#1334
|
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. |
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.
…anning pipeline
Implements the full security scanning CI pipeline required by #1334.
Changes:
.github/workflows/security.yml: Complete rewrite with four jobs:
SECURITY.md: Added 'Automated Security Scanning Pipeline' section documenting each scan, how to view SARIF results in the Security tab, how to handle dependency audit failures, how to respond to secret scan failures, how to suppress false positives responsibly, and the weekly CVE sweep cadence.
Closes #1334
Description
Type of Change
Related Issues
Closes #
Changes Made
Testing
Test Coverage
Test Steps
Breaking Changes
Breaking Changes:
Migration Guide:
Screenshots/Demo
Checklist
backend/docs/observability/Additional Notes