Overview & Background
Security is critical for financial payment infrastructure. Implementing an automated security scanning pipeline in CI detects supply chain vulnerabilities, secret leaks, and static code vulnerabilities before pull requests are merged.
Technical Specification & Architecture
- Security Workflow (
.github/workflows/security.yml):
- Rust Audit:
cargo audit for contract dependencies.
- Node.js Audit:
npm audit --audit-level=high across workspaces.
- Secret Scanning:
trufflehog or gitleaks scanning repository history.
- Static Code Analysis (SAST): Semgrep scanning for common Node/React/Rust anti-patterns.
- Automated Weekly Security Scan:
- Schedule weekly cron job to detect newly published CVEs in existing dependencies.
Target Files
.github/workflows/security.yml
SECURITY.md
Acceptance Criteria
Overview & Background
Security is critical for financial payment infrastructure. Implementing an automated security scanning pipeline in CI detects supply chain vulnerabilities, secret leaks, and static code vulnerabilities before pull requests are merged.
Technical Specification & Architecture
.github/workflows/security.yml):cargo auditfor contract dependencies.npm audit --audit-level=highacross workspaces.trufflehogorgitleaksscanning repository history.Target Files
.github/workflows/security.ymlSECURITY.mdAcceptance Criteria