fix: allow alternate scheme on url->licenseID lookup#4588
Conversation
Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
|
I haven't reviewed the code specifically, but could we just trim the |
@kzantow we're not generating a new list with both https/http. We're simply trying both on the lookup. |
|
Right, I'm suggesting we do that -- update the generation to trim |
Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
* main: (114 commits) fix: lookup alternate scheme on url->licenseID (anchore#4588) chore(deps): bump the go-minor-patch group with 2 updates (anchore#4583) feat: add Qt6 binary detection (anchore#4550) chore(deps): bump the actions-minor-patch group across 1 directory with 2 updates (anchore#4584) fix: snap cataloger incorrectly identifies snap container as deb package (anchore#4500) chore(deps): update tools to latest versions (anchore#4577) fix: update mixed case dependencies in python to be normalized (anchore#4573) chore(deps): update anchore dependencies (anchore#4575) chore(deps): update tools to latest versions (anchore#4570) feat: detect Debian version from /etc/debian_version (anchore#4569) fix: correctly report supporting evidence for binary packages (anchore#4558) chore(deps): bump the actions-minor-patch group across 2 directories with 3 updates (anchore#4568) chore(deps): bump the go-minor-patch group with 6 updates (anchore#4567) chore(deps): update tools to latest versions (anchore#4565) chore(deps): bump github.com/spdx/tools-golang (anchore#4557) ci: enable zizmor to fail PRs (anchore#4556) Chore new slack action (anchore#4553) chore(deps): update anchore dependencies (anchore#4552) chore(deps): update tools to latest versions (anchore#4551) chore(deps): update tools to latest versions (anchore#4545) ... Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
Description
Update url -> SPDXID lookup to try both http/https.
#4244 asked for http mapping -> BSD-3-Clause
This is because the SPDX license list only supported HTTPS for the lookup:
https://github.com/spdx/license-list-XML/blob/297da51b1b0ea5aab7de4a35faea34ffc43323a0/src/BSD-3-Clause.xml#L5-L9
Rather than add both schemes to the upstream list or manage our own internal map we update the lookup logic to just try both http/https given typos and manual editing that happens for License URL data in the various package managers and software license data.
Type of change
Checklist
Fixes: #4233