Semgrep cli
Run Semgrep code scanning via CLI. Use when needing to "scan code", "security scan", "find vulnerabilities", "code scan".From its SKILL.md
npx -y skills add tyjpark0317/enterprise-os --skill semgrep-cliAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
0.9 KB, as published. Nobody here has run it
Semgrep CLI Operations
Run Semgrep security scanning directly via CLI.
Operations
- Full Scan:
npx semgrep scan --config auto src/ - Specific Rules:
npx semgrep scan --config p/typescript --config p/react src/ - Single File:
npx semgrep scan --config auto path/to/file.ts - Supply Chain:
npx semgrep scan --config p/supply-chain . - JSON Output:
npx semgrep scan --config auto --json src/ | jq '.results[]'
Common Rule Packs
| Pack | Purpose |
|---|---|
p/typescript | TypeScript general |
p/react | React patterns |
p/nextjs | Next.js specific |
p/owasp-top-ten | OWASP Top 10 |
p/supply-chain | Dependency vulnerabilities |
p/secrets | Hardcoded secrets |