-
Notifications
You must be signed in to change notification settings - Fork 183
Add a basic SBOM workflow (closes #1838) #1854
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
2ad6589
#1838 Use trivy to generate CycloneDX SBOMs
643937f
#1838 Add a parser for CycloneDX SBOMs
1af7a18
#1838 Add a Dependency-Track persistence hook
812303e
#1838 Clarify CycloneDX parser Makefile changes
55a4a7c
#1838 Add unit tests for dependencytrack hook
332a175
#1838 Add unit tests for parser-cyclonedx
3c8aab6
#1838 Move trivy-sbom to its own scanner
fc8b413
#1838 Add CycloneDX test file to sbom parser tests
c9f34df
#1838 Add integration tests for trivy-sbom scanner
282a671
#1838 Add SBOM components to GitHub workflows
7a1453d
#1838 Exclude more files from helm chart
337bdce
#1838 Cross-reference SBOM workflow components
dccdeac
#1838 Check Dependency-Track response for errors
67c3f4f
#1838 Fix image name and version recognition
06f6874
#1838 Add trivy-sbom-image to telemetry service
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
#1838 Use trivy to generate CycloneDX SBOMs
Add a new ScanType to trivy, that allows generating CycloneDX SBOMs from container images. This is part of work to integrate an SBOM workflow into the secureCodeBox. At the moment the SBOMs are only generated and uploaded to storage, nothing else happens to them. Note that this is a different result type than the other trivy scans, this uses "sbom-cyclonedx", therefore the normal trivy parser will not run for these scans. Signed-off-by: Lukas Fischer <lukas.fischer@iteratec.com>
- Loading branch information
There are no files selected for viewing
This file contains hidden or 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,7 @@ | ||
| <!-- | ||
| SPDX-FileCopyrightText: the secureCodeBox authors | ||
|
|
||
| SPDX-License-Identifier: Apache-2.0 | ||
| --> | ||
|
|
||
| This example shows how to generate a CycloneDX SBOM from a container image using the `trivy image` scanner with CycloneDX output with the secureCodeBox. |
This file contains hidden or 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,12 @@ | ||
| # SPDX-FileCopyrightText: the secureCodeBox authors | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| apiVersion: "execution.securecodebox.io/v1" | ||
| kind: Scan | ||
| metadata: | ||
| name: "trivy-image-sbom-juice-shop" | ||
| spec: | ||
| scanType: "trivy-image-sbom" | ||
| parameters: | ||
| - "bkimminich/juice-shop:v15.0.0" |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.