Skip to content

bug(spdx): Trivy can't parse text licenses with 2 consecutive tokens #8465

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

Closed
DmitriyLewen opened this issue Feb 28, 2025 · 0 comments · Fixed by #8502
Closed

bug(spdx): Trivy can't parse text licenses with 2 consecutive tokens #8465

DmitriyLewen opened this issue Feb 28, 2025 · 0 comments · Fixed by #8502
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. scan/license Issues relating to license scanning

Comments

@DmitriyLewen
Copy link
Contributor

Description

When text license contains 2 consecutive tokens (e.g. with or) lexer package returns error and Trivy doesn't include this license into result:

[spdx] Unable to marshal SPDX licenses	license="(GPL-2.0-only) AND (text://Redistribution and use in source and binary forms, with or without)

Discussed in #8449

@DmitriyLewen DmitriyLewen added the kind/bug Categorizes issue or PR as related to a bug. label Feb 28, 2025
@DmitriyLewen DmitriyLewen self-assigned this Feb 28, 2025
@DmitriyLewen DmitriyLewen added the scan/license Issues relating to license scanning label Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. scan/license Issues relating to license scanning
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant