Add Trivy vulnerability scan workflow with Devin API integration#6
Open
devin-ai-integration[bot] wants to merge 2 commits into
Open
Add Trivy vulnerability scan workflow with Devin API integration#6devin-ai-integration[bot] wants to merge 2 commits into
devin-ai-integration[bot] wants to merge 2 commits into
Conversation
Co-Authored-By: Marcel Schwager <marcel.schwager@codeium.com>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Co-Authored-By: Marcel Schwager <marcel.schwager@codeium.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new GitHub Actions workflow (
.github/workflows/trivy-scan.yml) that automatically scans for security vulnerabilities on pushes to master/main and triggers a Devin session to fix them when vulnerabilities are detected.The workflow:
Updates since last revision
actions/cache@v2→actions/cache@v4in.github/workflows/gradle.ymlto resolve CI failure caused by GitHub's deprecation of cache v1/v2Review & Testing Checklist for Human
DEVIN_API_TOKENsecret to repository settings (Settings > Secrets and variables > Actions) before merging - the workflow will fail without itexit 1) when the Devin API call fails, or if it should just warnRecommended test plan:
DEVIN_API_TOKENsecret to the repositoryNotes
idempotent: truein the Devin API call to prevent duplicate sessions if the workflow is re-runLink to Devin run: https://app.devin.ai/sessions/7768e799d6fe43e7b9f5b2c4eca4f0e5
Requested by: Marcel Schwager (marcel.schwager@codeium.com) / @marcelschwager-ux