Skip to content

feat: add SAST auto-remediate workflow (npm audit + Trivy + Devin)#773

Open
devin-ai-integration[bot] wants to merge 4 commits into
mainfrom
devin/1780676053-sast-auto-remediate
Open

feat: add SAST auto-remediate workflow (npm audit + Trivy + Devin)#773
devin-ai-integration[bot] wants to merge 4 commits into
mainfrom
devin/1780676053-sast-auto-remediate

Conversation

@devin-ai-integration
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot commented Jun 5, 2026

Summary

Adds .github/workflows/sast-auto-remediate.yml — a self-contained CI pipeline that scans every non-bot PR for HIGH/CRITICAL findings using npm audit (frontend + backend) and Trivy container image scan, then auto-triggers a Devin session to remediate on the same branch.

Three-job graph: scanremediate (posts findings comment + invokes Devin v3 API, one-time guard) → verify (re-scan on synchronize, posts pass/fail verification comment). Extends the existing sast-scan.yml pattern (concurrency groups, bot exclusion, Devin API call via jq/curl, gh api comment posting).

Also adds ARCHITECTURE.md documenting the design of all three security workflows, their triggers, job graphs, data flow, secrets, and concurrency/safety mechanisms.

Link to Devin session: https://partner-workshops.devinenterprise.com/sessions/42ff4addedea4e338e6e397ea373cf53
Requested by: @mbatchelor81


Open in Devin Review

- New sast-auto-remediate.yml: npm audit + Trivy container scan on PRs
- Triggers Devin API session for HIGH/CRITICAL findings
- Re-scan verification on subsequent pushes
- ARCHITECTURE.md documenting the full pipeline design
@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

devin-ai-integration[bot]

This comment was marked as resolved.

Addresses Devin Review finding: vulnerability data from npm audit/Trivy
was interpolated directly into shell scripts via ${{ }}, allowing shell
breakage/command substitution on metacharacters in CVE titles. Now passed
through env vars and referenced as shell variables.
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 5, 2026

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.

1 participant