Skip to content

Add Semgrep SAST workflow - #38

Merged
quinnmil merged 1 commit into
mainfrom
semgrep-sast-ci
Nov 3, 2026
Merged

quinnmil merged 1 commit into
mainfrom
semgrep-sast-ci

Conversation

@quinnmil

@quinnmil quinnmil commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Why

This adds static analysis to every PR so new security findings get caught before they merge.

What

Adds .github/workflows/semgrep.yml, which runs the job Semgrep SAST (Semgrep 1.183.0, p/default, metrics off).

  • PRs to main are diff-aware (--baseline-commit = PR base), so only findings the PR introduces fail the check.
  • Pushes to main run a full scan in report-only mode.
  • There's no paths filter, so every PR gets the check.

Merging runs:

  • Semgrep: the full report-only scan.
  • CI (test, lint): tests and linting only.

release.yml runs only on v* tags, so nothing is released.

Follow-ups

  • After merge, register Semgrep SAST as the static analysis check name wherever this repo's checks are tracked.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NgEiZxpTQEsuZCXUbkYwXe

Runs Semgrep (p/default) as the "Semgrep SAST" check on every PR to
main, diff-aware against the PR base so only newly introduced findings
fail. Pushes to main run a full, report-only scan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NgEiZxpTQEsuZCXUbkYwXe
@quinnmil
quinnmil marked this pull request as ready for review November 2, 2026 23:08

@mitchh456 mitchh456 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trigger branch matches the main default branch and ci.yml; pins and container match the reviewed apm#5719 copy; comments and description are accurate.

@quinnmil
quinnmil merged commit fc66860 into main Nov 3, 2026
3 checks passed
@quinnmil
quinnmil deleted the semgrep-sast-ci branch November 3, 2026 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants