-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(advisor): Add BlackDuck as security vulnerability provider
BlackDuck's knowledge base about external components allows the retrieval of vulnerabilities by either a `(component, version)` tuple or an `origin`. The implementation relies on querying the vulnerabilities solely based on the origin, because that is what most closely resembles an ORT identifier or a purl. Relying on (component, version) would lead to unnecessary overreporting, let alone the difficulties with finding a good match. The implementation for now determines the origin by searching for it via the purl. Considering the ecosystems currently present in ORT, this works well for crate, gem, hackage, maven, npm, nuget, pod, pub and pypi, see also [1]. Note: Not all origins do have a purl associated, but they always have a `(externalNamespace, externalId)`. For such cases the implementation should be enhanced to allow specifying the `(externalNamespace, externalId)` via a curation. [1]: #9638 Signed-off-by: Frank Viernau <[email protected]>
- Loading branch information
Showing
12 changed files
with
6,212 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Copyright (C) 2024 The ORT Project Authors (see <https://github.com/oss-review-toolkit/ort/blob/main/NOTICE>) | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* License-Filename: LICENSE | ||
*/ | ||
|
||
plugins { | ||
// Apply precompiled plugins. | ||
id("ort-plugin-conventions") | ||
} | ||
|
||
dependencies { | ||
api(libs.blackduck.common.api) | ||
|
||
api(projects.advisor) | ||
api(projects.model) | ||
|
||
implementation(libs.blackduck.common) | ||
implementation(libs.kotlinx.coroutines) | ||
|
||
implementation(projects.utils.commonUtils) | ||
|
||
funTestImplementation(libs.gson) | ||
|
||
ksp(projects.advisor) | ||
} |
Oops, something went wrong.