scan_with_semgrep
Scan source code with Semgrep to find security vulnerabilities, bugs, and anti-patterns. Supports multiple languages including Python, JavaScript, Java, Go, C, C++, Ruby, and more.
Instructions
Scan source code using Semgrep for security vulnerabilities.
This tool analyzes source code for security vulnerabilities, bugs, and anti-patterns using Semgrep's rule engine with security-focused rulesets.
Supported languages:
python: Python source code
javascript: JavaScript source code
typescript: TypeScript source code
java: Java source code
go: Go source code
c: C source code
cpp: C++ source code
csharp: C# source code
ruby: Ruby source code
php: PHP source code
scala: Scala source code
kotlin: Kotlin source code
rust: Rust source code
Args: code: The source code content to analyze language: The programming language of the code
Returns: A dictionary with scan results including found security issues
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Source code content to scan | |
| language | Yes | Programming language (python, javascript, typescript, java, go, etc.) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |