DependencyTrack / dependency-track

Dependency-Track is an intelligent Component Analysis platform that allows organizations to identify and reduce risk in the software supply chain.
https://dependencytrack.org/
Apache License 2.0
2.45k stars 532 forks source link

Backport: Fix licenses not being resolved by name #3786

Closed nscuro closed 1 month ago

nscuro commented 1 month ago

Description

Fixes licenses not being resolved by name.

The name was already considered for resolution, but the matching was only performed on license IDs.

Addressed Issue

Fixes #3781 Backports #3782

Additional Details

N/A

Checklist

codacy-production[bot] commented 1 month ago

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
:white_check_mark: +0.04% (target: -1.00%) :white_check_mark: 100.00% (target: 70.00%)
Coverage variation details | | Coverable lines | Covered lines | Coverage | | ------------- | ------------- | ------------- | ------------- | | Common ancestor commit (3af6f5a55251d242a2b623f9e1a4d20824dc0145) | 22075 | 16773 | 75.98% | | | Head commit (7529e41bc01c4c094b93c852e0953d3aeb8089c7) | 22074 (-1) | 16780 (+7) | 76.02% (**+0.04%**) | **Coverage variation** is the difference between the coverage for the head and common ancestor commits of the pull request branch: ` - `
Diff coverage details | | Coverable lines | Covered lines | Diff coverage | | ------------- | ------------- | ------------- | ------------- | | Pull request (#3786) | 11 | 11 | **100.00%** | **Diff coverage** is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: `/ * 100%`

See your quality gate settings    Change summary preferences

Codacy will stop sending the deprecated coverage status from June 5th, 2024. Learn more