We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
New version 0.14.0 fails pipeline if format: 'sarif' and exit-code: '1' and there are no CRITICAL/HIGH vulnerabilities found:
format: 'sarif'
exit-code: '1'
- name: Run Trivy vulnerability scanner uses: aquasecurity/[email protected] with: image-ref: ${{ env.image-ref }} format: 'sarif' output: 'trivy-results.sarif' exit-code: '1' ignore-unfixed: true vuln-type: 'os,library' severity: 'CRITICAL,HIGH'
Older version 0.13.1 doesn't respect exit-code if format: 'sarif'
exit-code
The text was updated successfully, but these errors were encountered:
found the reason: --severity flag is not passed if sarif == true:
--severity
sarif == true
trivy image <image-with-no-critical-vuln> --exit-code 1 --ignore-unfixed --vuln-type os,library --severity CRITICAL; echo $? 0 trivy image <image-with-no-critical-vuln> --exit-code 1 --ignore-unfixed --vuln-type os,library ; echo $? 1
https://github.com/aquasecurity/trivy-action/blob/master/entrypoint.sh#L178
Sorry, something went wrong.
limit-severities-for-sarif: true fixes the issue
limit-severities-for-sarif: true
fixing trivy scanner
a5eb60a
aquasecurity/trivy-action#281
830d579
No branches or pull requests
New version 0.14.0 fails pipeline if
format: 'sarif'
andexit-code: '1'
and there are no CRITICAL/HIGH vulnerabilities found:Older version 0.13.1 doesn't respect
exit-code
ifformat: 'sarif'
The text was updated successfully, but these errors were encountered: