This repository contains intentionally vulnerable code for security analysis and testing.
It includes GitHub Actions workflows that automatically scan the code for security vulnerabilities
using Cppcheck (for C/C++) and Semgrep (for multiple languages).
- π Vulnerable Code β Contains code with security flaws for testing.
- π€ Automated Security Scans β Runs Cppcheck and Semgrep on code changes.
- π GitHub Security Dashboard Integration β Reports are uploaded to GitHubβs security panel.
- π SARIF Report Uploads β Allows reviewing scan results directly in GitHub.
- Runs on:
pushtomaindiff-aware and on demand - Scans:
vulnerable-source-code/ - Uploads: SARIF results to the GitHub Security Dashboard.
π .github/workflows/cppcheck.yml
- Runs on:
pushtomaindiff-aware and on demand - Scans:
vulnerable-source-code/ - Uploads: SARIF reports for GitHub Code Scanning Alerts.
π .github/workflows/semgrep.yml
- Go to GitHub β Security Tab β Code Scanning Alerts.
- View Cppcheck and Semgrep scan results.
- Click on SARIF reports for detailed analysis.