Replies: 2 comments 1 reply
-
Hello @psibre Can you share examples of license usage in JUnit reports? Regards, Dmitriy |
Beta Was this translation helpful? Give feedback.
1 reply
-
v0.55.0 contains fix for that - #7440 |
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
Similar to #7264 and #7374, the JUnit template only processes vulnerabilities and misconfigurations, but should also handle licenses.
Desired Behavior
Running Trivy with the JUnit template on an SBOM file that contains license information should produce an XML report with testcases and failures (that can be processed to handle license policy violations, e.g., in GitLab CI/CD).
The report info should be consistent with the existing, default table report, e.g.,
Actual Behavior
Licenses in the SBOM are ignored; the license scanner with the JUnit template produces a report that contains no license testcases.
I've attached a toy SBOM generated from a Python environment via CycloneDX Python SBOM Generation Tool:
Reproduction Steps
1. Create an SBOM file that contains license information 2. Run `trivy sbom --scanners license --format template --template @${PATH_TO_JUNIT_TPL} ${SBOM_FILE}` 3. Observe JUnit XML report with no license information.
Target
SBOM
Scanner
License
Output Format
Template
Mode
Standalone
Debug Output
Operating System
Ubuntu 22.04
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions