Repository navigation
DLPX-98872 linux-pkg: generate per-package CycloneDX SBOM via Syft deb scan and publish S3 sidecar #418
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
justsanjeev
merged 17 commits into
develop
from
dlpx/pr/justsanjeev/721d0991-92c3-46ab-a792-d34028a44ae9
Oct 1, 2026
Merged
DLPX-98872 linux-pkg: generate per-package CycloneDX SBOM via Syft deb scan and publish S3 sidecar #418
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
ee451b2
DLPX-98872 linux-pkg: generate per-package CycloneDX SBOM via Syft de…
justsanjeev 0b4e66b
fixed packages/docker-python-image/config.sh
justsanjeev 48d6823
DLPX-98872 fix: install syft/cyclonedx-cli before generate_sbom, fix …
justsanjeev bdabf2b
DLPX-98872: suppress Syft's file-metadata component in per-package SBOM
justsanjeev 703a4de
DLPX-98872: pin cyclonedx-cli merge's --output-version to v1_6
justsanjeev 8923f53
DLPX-98872: strict 1:1 .deb <-> BOM mapping, drop cyclonedx-cli merge
justsanjeev 3d769d7
DLPX-98872: provision syft/cyclonedx-cli as generic build tooling
justsanjeev 7934898
DLPX-98872: explain the SBOM_DEEP_SCAN decision in the lint failure
justsanjeev e5921bb
DLPX-98872: extract each .deb before scanning it
justsanjeev 06fedec
DLPX-98872: enable SBOM deep scan for performance-diagnostics
justsanjeev 751943f
DLPX-98872: sanitize the CycloneDX sidecar before publishing it
justsanjeev 2f05bef
DLPX-98872: retain syft:package:type in the sanitized sidecar
justsanjeev 40ed440
DLPX-98872: type the SBOM root as application and declare a flat depe…
justsanjeev 15f355b
DLPX-98872: fix sanitize_sbom() crashing when Syft finds no components
justsanjeev eb9e155
DLPX-98872 TEMPORARY DO NOT MERGE: default CYCLONEDX_FILTERING to false
justsanjeev a4d72b4
post testing that flipping the flag CYCLONEDX_FILTERING to false is s…
justsanjeev cc46d94
DLPX-98872: drop the "sidecar" jargon in favour of SBOM
justsanjeev 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
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,34 @@ | ||
| #!/bin/bash -ex | ||
|
|
||
| set -o pipefail | ||
|
|
||
| cd "$(git rev-parse --show-toplevel)" | ||
|
|
||
| # | ||
| # Every package must explicitly set SBOM_DEEP_SCAN to "true" or "false" in | ||
| # its config.sh -- see docs on generate_sbom() in lib/common.sh. There is | ||
| # no default: a package that hasn't been classified yet must fail CI | ||
| # rather than silently ship without a CycloneDX SBOM or without an | ||
| # explicit decision that it doesn't need one. | ||
| # | ||
| unclassified=$(./query-packages.sh list -o name,sbom-deep-scan all | | ||
| awk -F'\t' '$2 == "none" { print $1 }') | ||
|
|
||
| if [[ -n "$unclassified" ]]; then | ||
| echo "The following packages have not set SBOM_DEEP_SCAN (\"true\" or" \ | ||
| "\"false\") in their config.sh:" | ||
| echo "$unclassified" | ||
| echo | ||
| echo "Set it to \"true\" for 1st-party packages, so that the" \ | ||
| "third-party components they package internally (jars, npm" \ | ||
| "modules, Rust crates, ...) are included in the product's" \ | ||
| "aggregate SBOM." | ||
| echo "Set it to \"false\" for 3rd-party forks of Debian packages, and" \ | ||
| "for packages that are not included in a shipping product:" \ | ||
| "those are already covered as a flat pkg:deb component by" \ | ||
| "appliance-build's image-level scan, so a deep scan here would" \ | ||
| "add nothing." | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "All packages have classified SBOM_DEEP_SCAN" | ||
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
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
|
justsanjeev marked this conversation as resolved.
|
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.