Repository navigation
Docs: Record why the Go SBOM stays on cyclonedx-gomod - #115
Merged
ModeSevenIndustrialSolutions merged 3 commits intoSep 29, 2026
Conversation
D20 left open whether sbom-action, which wraps syft, could replace the lane's hand-installed cyclonedx-gomod, and so generalise scan_mode 'sbom' to every ecosystem. It cannot for Go, and generalising is not needed. Checked with the exact generators each path would run: cyclonedx-gomod v1.10.0, the lane's pin, and syft v1.51.1, the default of the download-syft step sbom-action v0.2.0 pins. Both ran on test-go-project and on onap/policy-opa-pdp, the lane's one real sbom-mode caller, and every Go package URL each emitted was looked up in Nexus IQ through its read-only component-details API, which creates no application and no report. Identification is identical: all 80 modules both generators report for policy-opa-pdp are matched the same way, with the same vulnerabilities and licences. cyclonedx-gomod's goos, goarch and type qualifiers do not affect matching; Nexus IQ echoes the URLs without them. Scope is not. syft reads go.sum, reporting 23 more modules that are in neither the build nor the test graph -- the over-reporting D23 moved the CLI path away from. It also catalogues the project's own GitHub Actions as components, 17 of them, and names the root module without a version, which Nexus IQ rejects with HTTP 400. Its dependency graph is thinner: 240 edges against 392, under a root that is the scanned directory rather than the application. Generalising has no remaining driver. It was proposed for Python and Node.js projects wanting CLM coverage; Python now has a CLI path and Node.js projects already run the CLI scan, which can gate on policy where an SBOM upload cannot. So sbom stays Go-only, and the validation rejecting it elsewhere becomes a standing restriction. Records, rather than fixes, that the sbom path omits test-only dependencies the CLI path includes: adding -test would change policy-opa-pdp's results, which it pinned sbom mode to keep stable. Closes: lfreleng-actions#39 Closes: lfreleng-actions#40 Co-authored-by: Claude <[email protected]> Signed-off-by: Matthew Watkins <[email protected]>
ModeSevenIndustrialSolutions
requested review from
a team
and
a balanced review from Copilot
September 25, 2026 11:02
The v0.1.1 tag was re-created on 2026-09-25 at 98f03c9, after the release it originally named failed. Both lanes still pinned 408eb05, the commit Dependabot bumped them to under the same tag on 2026-09-01, so their '# v0.1.1' comments named a release the pinned code no longer is. gha-workflow-linter corrects that mismatch on any commit staging a workflow file. Behaviour-neutral for both lanes. Between the two commits action.yaml is unchanged: the same nine inputs, of which the lanes pass the same eight, and the settings-content output they read. The changes are release-workflow and repository housekeeping. Co-authored-by: Claude <[email protected]> Signed-off-by: Matthew Watkins <[email protected]>
Copilot review round 1. D25 settles that scan_mode 'sbom' stays Go-only, but six places in sonatype-lifecycle.yaml still described the restriction as temporary, pointing at lfreleng-actions#39 or lfreleng-actions#40 to lift it: the header, the scan_mode description, the go_sbom_tool_version note, two comments in the scan_mode validation, and its error message. Reword each to state the decision and cite D25, and drop the instructions to remove the guard once lfreleng-actions#40 lands. The error message loses 'currently' and names the way out: use scan_mode 'cli' for other build types. tests/workflow-steps.sh asserts on 'requires', which the new wording keeps. Co-authored-by: Claude <[email protected]> Signed-off-by: Matthew Watkins <[email protected]>
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The documentation is internally consistent, the Go-only restriction remains enforced and tested, and the new pin preserves the action implementation.
Review effort: Balanced
Findings: None
Resolved since last review (1)
zxiiro
approved these changes
Sep 29, 2026
zxiiro
left a comment
There was a problem hiding this comment.
🤖 Auto-approved by agent: trivial change (dependency/docs/formatting only).
ModeSevenIndustrialSolutions
merged commit Sep 29, 2026
c60183d
into
lfreleng-actions:main
11 checks passed
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
Settles #39 and #40 with evidence, recorded as BRIEF decision D25, in three atomic commits:
docs/BRIEF.md.maven-xml-settings-actiontov0.1.1. See below.sbomas permanently Go-only insonatype-lifecycle.yaml(Copilot round 1).None of them touches a file #114 changes, so the two merge in either order.
Closes #39.
Closes #40.
The question
#39 asked whether Nexus IQ identifies components from syft-generated CycloneDX as well as from
cyclonedx-gomod. #40, generalisingscan_mode: 'sbom'to every ecosystem throughsbom-action, rested entirely on that answer.I'd held this back because #39's suggested method uploads SBOMs to the shared Nexus IQ server. The central question turned out to be answerable without any upload: Nexus IQ's component-details API looks components up by package URL and creates no application and no report.
Method
cyclonedx-gomodv1.10.0 (the lane's pin), and syft v1.51.1, which is the default of theanchore/sbom-action/download-syftstep thatsbom-actionv0.2.0 pins. I read that default at the pinned commit, and checksum-verified the syft binary.lfreleng-actions/test-go-project, andonap/policy-opa-pdp, the lane's one realsbom-mode caller, as Verify Nexus IQ ingestion of syft-generated CycloneDX SBOMs #39 recommends.sbom-action's ownsyft scan dir:… -o [email protected].Findings (
policy-opa-pdp)cyclonedx-gomod.github/workflows)…@v0.0.0-…Identification is identical. That was #39's feared regression, and it didn't materialise.
cyclonedx-gomodappendsgoos/goarch/typequalifiers and syft doesn't, but Nexus IQ echoes both back without them, so they don't affect matching.Scope and graph are worse. syft reads
go.sum, which is the over-reporting D23 moved the CLI path away from, and it adds CI actions to a CLM application. Its graph is also thinner, and direct-versus-transitive attribution rests on the graph.Outcome
cyclonedx-gomodpath.sbom-actionhas nocyclonedx-gomodbackend (itscyclonedxbackend drives the Maven and Gradle plugins), so there's nothing to switch to without building one.sbomis fire-and-forget with no policy verdict. Sosbomstays Go-only, and the validation rejecting it elsewhere becomes a standing restriction.What I could not check, and why it doesn't change the answer
Three of #39's criteria need a real upload: how the Application Composition Report renders, upload-endpoint errors, and policy evaluation inside an application. I didn't upload anything to the shared server. Each of those could only confirm or worsen the result, because the scope and graph problems are independent of how the report displays them.
Recorded, not fixed
The lane runs
cyclonedx-gomod modwithout-test, sosbommode omits the test-only modules D23 made the CLI path include. On the fixture, whose dependencies are all test-only, the SBOM names no dependency at all. Adding-testwould changepolicy-opa-pdp's results (81 components → 82), and that project pinnedsbomspecifically to keep its results matching the Jenkins job it replaced. So it belongs with a change that project agrees to, not a silent default change.The pin commit
v0.1.1ofmaven-xml-settings-actionwas re-created on 2026-09-25 at98f03c9, after the release it originally named failed. Both lanes still pinned408eb05, the commit Dependabot bumped them to under the same tag on 2026-09-01, so their# v0.1.1comments named a release the pinned code no longer was.gha-workflow-lintercorrects that mismatch on any commit that stages a workflow file, so it had to land before the comment fix could.Behaviour-neutral: between the two commits,
action.yamlis unchanged. It has the same nine inputs, of which the lanes pass the same eight, and the samesettings-contentoutput they read. The 44 commits in between are release-workflow and repository housekeeping.Validation
prek run --all-files— all hooks pass, includinggha-workflow-linter, which no longer changes the pinszizmor --persona auditor— 0 findingstests/workflow-steps.sh— 69/69gitlint— clean; commit signed with DCO sign-off