-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Glen Anderson
committed
May 17, 2022
1 parent
544b1d5
commit 2015b92
Showing
3 changed files
with
47 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# meta-dependencytrack | ||
|
||
`meta-dependencytrack` is a [Yocto](https://www.yoctoproject.org/) meta-layer which produces a [CycloneDX](https://cyclonedx.org/) Software Bill of Materials (aka [SBOM](https://www.ntia.gov/SBOM)) from your root filesystem and then uploads it to a [Dependency-Track](https://dependencytrack.org/) server against the project of your choice. | ||
|
||
## Installation | ||
|
||
To install this meta-layer simply clone the repository into the `sources` directory and add it to your `build/conf/bblayers.conf` file: | ||
|
||
```sh | ||
$ cd sources | ||
$ git clone https://github.com/bgnetworks/meta-dependencytrack.git | ||
``` | ||
|
||
and in your `bblayers.conf` file: | ||
|
||
```sh | ||
BBLAYERS += "${BSPDIR}/sources/meta-dependencytrack" | ||
``` | ||
|
||
## Configuration | ||
|
||
To enable and configure the layer simply inherit the `dependency-track` class in your `local.conf` file and then set the following variables: | ||
|
||
* `DEPENDENCYTRACK_PROJECT` - The ID of the project in Dependency-Track | ||
* `DEPENDENCYTRACK_API_URL` - The URL of the Dependency-Track API server. (*Note:* this is usually different from the URL of the web server you use in your browser) | ||
* `DEPENDENCYTRACK_API_KEY` - An authentication key for the server. You can find these in the `Teams` section of the `Adminitration` page in Dependency-Track. | ||
|
||
### Example | ||
|
||
```sh | ||
DEPENDENCYTRACK_PROJECT = "41990900-1b3c-4ccd-8b55-57dd0ddc32d9" | ||
DEPENDENCYTRACK_API_URL = "http://localhost:8081/api" | ||
DEPENDENCYTRACK_API_KEY = "mkj6wn4dziQm7UmrBJcym5f6hOKBDxGB" | ||
INHERIT += "dependency-track" | ||
``` | ||
|
||
### Finding your Project ID | ||
|
||
 | ||
|
||
### Finding your API Key | ||
|
||
 | ||
|
||
## Building and Uploading | ||
|
||
Once everything is configured simply build your image as you normally would. The final CycloneDX SBOM is saved as `tmp/deploy/dependency-track/bom.json` and, after buiding is complete, you should be able to simply refresh the project in Dependency Track to see the results of the scan. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.