Replies: 1 comment
-
|
Hi @stemann ! We are currently implementing changes to the system for managing check IDs, which will be included in the next release and will resolve this existing issue. Issue to track: #9064 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When running a trivy misconfiguration scan for a filesystem with some terraform/aws/eks code, and outputting to SARIF, the SARIF report includes rule id
aws-vpc-no-public-egress-sgrinstead of the expected rule idAVD-AWS-0104: https://avd.aquasec.com/misconfig/aws-vpc-no-public-egress-sgr alias https://avd.aquasec.com/misconfig/aws/ec2/avd-aws-0104As a consequence, the SARIF report cannot be matched with the corresponding
trivyignore.yaml-file.Desired Behavior
Expected rule ids (
AVD-AWS-0104):$ jq '.runs[0].tool.driver.rules.[] | { id: .id }' report.sarif.json{ "id": "AVD-AWS-0040" } { "id": "AVD-AWS-0041" } { "id": "AVD-AWS-0104" }Actual Behavior
Actual rule ids (
aws-vpc-no-public-egress-sgr):$ jq '.runs[0].tool.driver.rules.[] | { id: .id }' report.sarif.json{ "id": "AVD-AWS-0040" } { "id": "AVD-AWS-0041" } { "id": "aws-vpc-no-public-egress-sgr" }report.sarif.json
Reproduction Steps
trivy --config .trivy/fs.yaml --format sarif --output report.sarif.json fs .Target
Filesystem
Scanner
Misconfiguration
Output Format
SARIF
Mode
Standalone
Debug Output
trivy_debug.err.log
Operating System
Debian GNU/Linux 13 (trixie)
Version
Checklist
trivy clean --allBeta Was this translation helpful? Give feedback.
All reactions