Skip to content

Latest commit

Β 

History

History
41 lines (29 loc) Β· 1.45 KB

File metadata and controls

41 lines (29 loc) Β· 1.45 KB

πŸ”’ Security Testing Repository

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).


πŸš€ Features

  • πŸ›  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.

⚑ GitHub Actions Workflows

πŸ”Ή Cppcheck (C/C++ Security Scan)

  • Runs on: push to main diff-aware and on demand
  • Scans: vulnerable-source-code/
  • Uploads: SARIF results to the GitHub Security Dashboard.

Workflow Location:

πŸ“„ .github/workflows/cppcheck.yml

πŸ”Ή Semgrep (Static Code Analysis)

  • Runs on: push to main diff-aware and on demand
  • Scans: vulnerable-source-code/
  • Uploads: SARIF reports for GitHub Code Scanning Alerts.

Workflow Location:

πŸ“„ .github/workflows/semgrep.yml


πŸ“Š Viewing Security Reports

  1. Go to GitHub β†’ Security Tab β†’ Code Scanning Alerts.
  2. View Cppcheck and Semgrep scan results.
  3. Click on SARIF reports for detailed analysis.