Interview Prep/DevSecOps/SAST, SCA and secrets scanning in CI

Semgrep in CI reports findings in `node_modules/`, `vendor/` and minified `dist/*.js`

BeginnerTroubleshootingSAST, SCA and secrets scanning in CI
Answer

Likely causes → No .semgrepignore, or a custom one that replaced the defaults. Build output is committed or produced before the scan.

Diagnose →

semgrep --config auto --json . | jq -r '.results[].path' | cut -d/ -f1 | sort | uniq -c

Fix → Add .semgrepignore:

node_modules/
vendor/
dist/
*.min.js

Run the SAST job before the build step.

Prevent → Third-party code belongs to SCA, not SAST. Keep ignore files in the repo template.

All DevSecOps questions Roadmap: Security in the pipeline

More on SAST, SCA and secrets scanning in CI