feat: add comprehensive security scanning to CI/CD pipeline#3128
Merged
MuhammadKhalilzadeh merged 5 commits intodevelopfrom Jan 28, 2026
Merged
feat: add comprehensive security scanning to CI/CD pipeline#3128MuhammadKhalilzadeh merged 5 commits intodevelopfrom
MuhammadKhalilzadeh merged 5 commits intodevelopfrom
Conversation
## Changes - Add CodeQL static analysis for JavaScript/TypeScript and Python - Add Dependabot for automated dependency updates (npm, pip, Docker, GitHub Actions) - Add npm audit security scanning to backend and frontend checks - Add ESLint linting to frontend checks - Add Trivy container vulnerability scanning for all Docker images - Add dependency review action to block PRs with vulnerable dependencies ## Security Coverage - SAST: CodeQL scans for security vulnerabilities in code - SCA: Dependabot monitors and updates vulnerable dependencies - Container Security: Trivy scans Docker images for CRITICAL/HIGH vulnerabilities - Dependency Review: Blocks PRs introducing known vulnerabilities ## Workflow Changes - backend-checks.yml: Added security audit job with npm audit - frontend-checks.yml: Added security audit job with npm audit and ESLint - docker-image.yml: Added Trivy scanning for frontend, backend, and eval-server images - New codeql-analysis.yml: Weekly and on-push security scanning - New dependabot.yml: Weekly dependency updates with grouping
|
Looks like there are a few issues preventing this PR from being merged!
If you'd like me to help, just leave a comment, like Feel free to include any additional details that might help me get this PR into a better state. You can manage your notification settings |
## Changes - Remove codeql-analysis.yml since GitHub default CodeQL setup is already enabled - Default setup provides equivalent SAST scanning without workflow conflicts ## Reason Custom CodeQL configurations cannot be processed when GitHub's default setup is enabled. The repository already has default CodeQL scanning active.
## Changes - Add Security Hardening Guide with production security checklist - Add Production Deployment Guide with Docker Compose instructions - Add Configuration Reference for all environment variables - Add deployment documentation README ## Purpose Provides comprehensive deployment documentation to support vendor security questionnaire requirements and production deployments.
## Changes - Add comprehensive DR/BC guide covering: - Recovery objectives (RTO/RPO) planning - Full and incremental database backup procedures - Point-in-time recovery (PITR) configuration - PostgreSQL streaming replication setup - Redis persistence configuration - High-availability deployment patterns - Recovery runbooks for common scenarios - Backup storage and encryption recommendations - DR testing procedures and checklists - Integration guidance for enterprise DR infrastructure ## Purpose Provides documentation to support on-premises deployments where customers manage their own DR/BC infrastructure. Covers database replication, backup/restore procedures, and high-availability options.
## Changes ### Security Hardening Guide - Fix rate limiting table: register, refresh-token, reset-password use authLimiter (5 req/15 min), not 10 req/1 min - Add missing rate limiters: chng-pass, file operations, general API - Fix audit logging: update entity list to match actual implementation (model_inventory, vendor, vendor_risk, use_case, risk, policy, incident, framework, evidence_hub) - removed incorrect "Controls" - Fix CORS section: clarify actual behavior (HOST-based, not FRONTEND_URL) ### Production Deployment Guide - Remove non-existent /api/health endpoint references - Fix migration command: npm run migrate-db (not npm run migrate) - Add note about automatic migrations on startup - Update health monitoring section to reflect actual capabilities ### Disaster Recovery Guide - Fix Kubernetes probe example: use tcpSocket instead of non-existent /api/health endpoint
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
New Workflows & Configurations
codeql-analysis.ymldependabot.ymlUpdated Workflows
backend-checks.ymlfrontend-checks.ymldocker-image.ymlSecurity Coverage
Benefits