Fix asff template for the Message parameter #7391
Closed
aliaksxssv
started this conversation in
Bugs
Replies: 1 comment
-
Hello @aliaksxssv Created #7400 Regards, Dmitriy |
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
-
Description
ASFF report contains a Message field with double quotes inside the value. This makes using jq impossible as it causes error:
We need jq to adjust report before submitting to the AWS SecurityHub:
ASFF report snippet:
"ProductFields": { "Product Name": "Trivy" }, "Resources": [ { "Type": "Other", "Id": "templates/cronjob.yaml", "Partition": "aws", "Region": "", "Details": { "Other": { "Message": "container "helm-cronjob" of cronjob "helm-cronjob" in "default" namespace should specify a seccomp profile", "Filename": "templates/cronjob.yaml", "StartLine": "0", "EndLine": "0" } } } ], "RecordState": "ACTIVE"
Desired Behavior
escape function should be applied as it was done before for the Title field
Actual Behavior
No escape function
Reproduction Steps
Target
None
Scanner
None
Output Format
None
Mode
None
Debug Output
Operating System
any
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions