Skip to content

Conversation

@KristianGrafana
Copy link
Contributor

Trivy-diff can output a delta between two scans that has happened on different branches, ideally a target and branch.

Example output:

### New vulnerabilities introduced in branch test-patch compared to main

* CVE-2014-1829, Severity: MEDIUM, Package: requests, Installed: 0.22.0, Fixed: 2.3.0
* CVE-2014-1830, Severity: MEDIUM, Package: requests, Installed: 0.22.0, Fixed: 2.3.0

This action is able to create a Trivy diff between 2 branches (ideally base and target branch upon PR creation) and then comment the delta. 

This might help engineers from merging code that introduces vulnerabilities in dependencies.
@KristianGrafana KristianGrafana merged commit ae33040 into main Mar 21, 2025
1 check passed
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