Skip to content

Github Action Example with Semgrep SAST

Notifications You must be signed in to change notification settings

l1uk/SAST-basic-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”’ 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.

About

Github Action Example with Semgrep SAST

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors