sast-scanning

Performs static security testing on source code using Semgrep, CodeQL, and SonarQube.

46|4|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/BagelHole/DevOps-Security-Agent-Skills --skill sast-scanning
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sast-scanning
Source: https://github.com/BagelHole/DevOps-Security-Agent-Skills/tree/main/security/scanning/sast-scanning
Command: npx skills add https://github.com/BagelHole/DevOps-Security-Agent-Skills --skill sast-scanning

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps identify security vulnerabilities directly within your source code before deployment, reducing the risk of security breaches and compliance failures.

Core Features & Use Cases

  • Automated Code Analysis: Integrates with popular SAST tools like Semgrep, CodeQL, and SonarQube to scan code.
  • Vulnerability Detection: Identifies common security flaws such as SQL injection, hardcoded secrets, and insecure configurations.
  • Use Case: Integrate this skill into your CI/CD pipeline to automatically scan all new code changes for security issues, preventing vulnerable code from reaching production.

Quick Start

Run Semgrep with default security audit rules against the current directory.

Frequently Asked Questions about sast-scanning

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate vulnerability detection in my CI/CD pipeline?

Static application security testing identifies vulnerabilities in source code before deployment. This Skill automates code analysis using tools like Semgrep, CodeQL, and SonarQube to find flaws such as SQL injection and hardcoded secrets early in the secure SDLC.

How do I run Semgrep security scans on my source code?

Run Semgrep security scans on your source code by executing default security audit rules against your current directory. This performs comprehensive code analysis to identify common security flaws like SQL injection and insecure configurations.

Does this SAST scanning approach work with both Semgrep and SonarQube?

This SAST scanning approach works with both Semgrep and SonarQube, alongside CodeQL. It supports integrating these tools to perform comprehensive code analysis and address secure SDLC requirements across different scanning environments.

What types of security flaws can SAST tools identify in source code?

SAST tools identify security flaws in source code such as SQL injection, hardcoded secrets, and insecure configurations. They perform static analysis to detect these vulnerabilities early, reducing the risk of security breaches and compliance failures.

Can I implement security gates for code review automation using CodeQL?

You can implement security gates for code review automation using CodeQL to scan source code changes. This addresses secure SDLC requirements by blocking vulnerable code from deployment during the CI/CD integration process.