Trivy output mismatch between SARIF and non formatted/JSON for license scanning #4862
Closed
2 tasks done
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
scan/license
Issues relating to license scanning
Milestone
Discussed in #4836
Originally posted by RonShvarz July 18, 2023
Description
I am scanning for licenses on the example from your documentation here :
https://aquasecurity.github.io/trivy/v0.36/docs/licenses/scanning/
and i am getting mismatched outputs between formats
Desired Behavior
I am scanning with the updated flags,
produces -
Actual Behavior
when running :
the result is an empty file :
Reproduction Steps
1. $trivy image --scanners license --license-full --severity UNKNOWN,HIGH,CRITICAL alpine:3.15 2. view results 3. trivy image --scanners license --license-full --severity UNKNOWN,HIGH,CRITICAL alpine:3.15 --format sarif --output image_license.sarif 4. cat image_license.sarif 5. Compare results. ...
Target
Container Image
Scanner
License
Output Format
SARIF
Mode
Standalone
Debug Output
Operating System
ubuntu 20.04
Version
Checklist
trivy image --reset
The text was updated successfully, but these errors were encountered: