Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDIT-1681: 🐛 Only output severity defects to sarif format #324

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

petergphillips
Copy link
Contributor

No description provided.

@@ -31,6 +31,7 @@ jobs:
format: 'sarif'
output: 'trivy-results.sarif'
exit-code: 1
limit-severities-for-sarif: true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

starting to get complicated. We're only interested in high and critical issues, but by default the sarif format retrieves all the issues. This is then compounded by the exit-code, that looks at whether any issues are in the output format and doesn't take into account that it is a sarif format. Would be nice to see all the issues in the security tab, but that doesn't look like it is possible according to aquasecurity/trivy-action#309.

@petergphillips petergphillips merged commit 1e0f4c0 into main Apr 26, 2024
2 checks passed
@petergphillips petergphillips deleted the pgp-SDIT-1681-severity-sarif branch April 26, 2024 07:32
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