License scan - trailing and ending spaces in license #8086
-
QuestionI have a problem after upgrade to 0.58 version - license scan of library org.jvnet.staxex:stax-ex v1.8 returns in output json and still license is unclasified. TargetFilesystem ScannerLicense Output FormatJSON ModeStandalone Operating SystemNo response VersionVersion: 0.58.0 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hello @KrzysztofKlubek
Take a look: ➜ trivy -q fs --scanners license ./pom.xml
pom.xml (license)
Total: 2 (UNKNOWN: 1, LOW: 0, MEDIUM: 1, HIGH: 0, CRITICAL: 0)
┌─────────────────────────────┬─────────────────────────────────────────────────────┬────────────────┬──────────┐
│ Package │ License │ Classification │ Severity │
├─────────────────────────────┼─────────────────────────────────────────────────────┼────────────────┼──────────┤
│ org.jvnet.staxex:stax-ex │ Dual license consisting of the CDDL v1.1 and GPL v2 │ Non Standard │ UNKNOWN │
├─────────────────────────────┼─────────────────────────────────────────────────────┼────────────────┼──────────┤
│ javax.activation:activation │ CDDL-1.0 │ Reciprocal │ MEDIUM │
└─────────────────────────────┴─────────────────────────────────────────────────────┴────────────────┴──────────┘
➜ cat trivy-config.yaml
license:
forbidden:
- "\n Dual license consisting of the CDDL v1.1 and GPL v2\n " ➜ trivy -q fs --scanners license ./pom.xml --config trivy-config.yaml
pom.xml (license)
Total: 2 (UNKNOWN: 0, LOW: 0, MEDIUM: 1, HIGH: 0, CRITICAL: 1)
┌─────────────────────────────┬─────────────────────────────────────────────────────┬────────────────┬──────────┐
│ Package │ License │ Classification │ Severity │
├─────────────────────────────┼─────────────────────────────────────────────────────┼────────────────┼──────────┤
│ org.jvnet.staxex:stax-ex │ Dual license consisting of the CDDL v1.1 and GPL v2 │ Forbidden │ CRITICAL │
├─────────────────────────────┼─────────────────────────────────────────────────────┼────────────────┼──────────┤
│ javax.activation:activation │ CDDL-1.0 │ Reciprocal │ MEDIUM │
└─────────────────────────────┴─────────────────────────────────────────────────────┴────────────────┴──────────┘ |
Beta Was this translation helpful? Give feedback.
-
Created #8094. |
Beta Was this translation helpful? Give feedback.
Hello @KrzysztofKlubek
"\n Dual license consisting of the CDDL v1.1 and GPL v2\n "
works for me.Take a look: