Add a custom BuildKit SBOM generator for extension images - #92
Open
ardentperf wants to merge 24 commits into
Open
ardentperf wants to merge 24 commits into
ardentperf wants to merge 24 commits into
Conversation
Add a workflow_dispatch publish input so the generator image can be pushed to GHCR on demand. Keep pull-request builds non-publishing and preserve local registry testing. Use the custom generator only on main or in explicit local mode so feature-branch extension CI does not depend on an unpublished image.
Keep the workflow_dispatch publish switch for explicit GHCR testing, but remove the local registry, single-platform, network, and skipped-side-effect paths that were only needed by local Act runs.
Identify the generator with its version and source repository, and emit phase timing plus scanner heartbeats so slow BuildKit SBOM runs are diagnosable.
Keep the existing executable bit when synchronizing the signed agent-branch update.
This reverts commit 10d9f5c.
ardentperf
force-pushed
the
x-ai/ardentperf/cnpg-sbom-generator
branch
from
September 15, 2026 19:28
524c602 to
7b4ac37
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR adds a BuildKit SBOM generator for CNPG extension images. It produces
platform-specific SPDX SBOMs for the shipped extension payload while retaining
package ownership, license findings, and optional downstream metadata hooks.
Changes
cnpg-sbom-generatorcontainer and its Python generator, SPDXcomposer, optional augmentation hook, and regression tests.
ghcr.io/cnpg-extensions/cnpg-sbom-generator.builder stage required for package and license evidence.
type=sbomattestation whensbom_generatoris notconfigured; use the custom generator when an image reference is supplied.
License:sections before ScanCode runs, thennormalize the results back to their original paths.
verification workflow.
Validation
python3 -m unittest discover -s sbom-generator/tests -p 'test_*.py'— 15 tests passed.
nektos/actand pushed therenamed generator image to a local registry.
nektos/act; the bookworm andtrixie builds completed successfully using the renamed generator image.
type=sbomfallbackand the custom
type=sbom,generator=...form.examples/trivy-sbom-examples.txt.GitHub-only OIDC, signing, and hosted-runner attestation steps were not run in
the local environment. The temporary Act/local-registry workflow overrides
used for testing are not included in this PR.