-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Specify location.message in SARIF reports #3002
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
Comments
candrews
added a commit
to candrews/trivy
that referenced
this issue
Oct 7, 2022
Signed-off-by: Craig Andrews <candrews@integralblue.com>
candrews
added a commit
to candrews/trivy
that referenced
this issue
Oct 7, 2022
Signed-off-by: Craig Andrews <candrews@integralblue.com>
6 tasks
candrews
added a commit
to candrews/trivy
that referenced
this issue
Oct 8, 2022
Signed-off-by: Craig Andrews <candrews@integralblue.com>
candrews
added a commit
to candrews/trivy
that referenced
this issue
Oct 8, 2022
Signed-off-by: Craig Andrews <candrews@integralblue.com>
candrews
added a commit
to candrews/trivy
that referenced
this issue
Oct 11, 2022
Signed-off-by: Craig Andrews <candrews@integralblue.com>
candrews
added a commit
to candrews/trivy
that referenced
this issue
Oct 11, 2022
Signed-off-by: Craig Andrews <candrews@integralblue.com>
candrews
added a commit
to candrews/trivy
that referenced
this issue
Oct 11, 2022
Signed-off-by: Craig Andrews <candrews@integralblue.com>
knqyf263
pushed a commit
that referenced
this issue
Oct 12, 2022
I'd like to piggy-back onto this issue, @candrews. The file path needs to be added to the message. When scanning multiple files of the same type, this is insufficient: "message": {
"text": "Dockerfile"
} This is the command: trivy config --format sarif --exit-code 1 --severity CRITICAL,HIGH --output trivy-results.sarif ./my/nested/dir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SARIF allows a "message" to be provided for a location and that can have more useful information. See:
https://docs.oasis-open.org/sarif/sarif/v2.1.0/os/sarif-v2.1.0-os.html#_Toc34317675
It would be helpful to set this property so SARIF consumers can display better information. It would be particularly nice if Trivy includes the file and the package name and version (ex,
pom.xml:org.yaml:snakeyaml@1.30
).The text was updated successfully, but these errors were encountered: