Repository navigation
Add source dependency SBOM generation - #421
Merged
Merged
Conversation
|
Sorry @cooktheryan, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 2 days and 19 hours by commenting |
Reviewer's GuideIntroduces source dependency SBOM generation through a configurable Syft-backed Make target, integrates it into a pinned GitHub Actions workflow for PRs, main pushes, and manual runs, and documents local usage, output overrides, exclusions, and scan scope. Sequence diagram for source SBOM generation in CIsequenceDiagram
participant Trigger as GitHub event
participant Actions as GitHub Actions
participant SyftSetup as download-syft
participant Make as make sbom
participant Syft as Syft
participant Artifact as upload-artifact
Trigger->>Actions: Start sbom workflow
Actions->>Actions: checkout
Actions->>Actions: setup-go
Actions->>SyftSetup: Install Syft v1.54.1
SyftSetup-->>Actions: steps.syft.outputs.cmd
Actions->>Make: make sbom
Make->>Syft: scan dir:. with source exclusions
Syft-->>Make: Write SPDX JSON to SBOM_FILE
Make-->>Actions: _output/sbom/fetchit.spdx.json
Actions->>Artifact: Upload fetchit-sbom
Flow diagram for configurable source SBOM generationflowchart LR
Source[Source tree] --> Make[make sbom]
Make --> Syft[SYFT executable]
Syft --> SPDX[SPDX JSON]
SPDX --> Output[SBOM_FILE]
Git[.git] -. excluded .-> Syft
Vendor[vendor/] -. excluded .-> Syft
Generated[_output/] -. excluded .-> Syft
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Signed-off-by: Ryan Cook <rcook@redhat.com>
cooktheryan
force-pushed
the
sbom-source-dependencies
branch
from
October 12, 2026 18:45
7262e70 to
412754b
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
make sbomtarget that generates an SPDX JSON inventory of source dependencies with Syftmainpushes, and manual runsValidation
make sbom SYFT='go run github.com/anchore/syft/cmd/syft@v1.54.1'go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.7 .github/workflows/sbom.ymlgit diff --checkSummary by Sourcery
Add automated and local generation of a source dependency SBOM in SPDX JSON format.
New Features:
Enhancements:
CI:
Documentation: