Repository navigation
Feat: Add a Go build_type to the Sonatype Lifecycle lane - #38
ModeSevenIndustrialSolutions merged 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR extends the reusable Sonatype Lifecycle workflow to support Go projects by adding a new build_type: go path with two scan modes (go_scan_mode: cli scanning go.sum, and go_scan_mode: api generating/uploading a CycloneDX SBOM), and updates examples/docs plus CI self-tests to cover the new behavior.
Changes:
- Add Go-specific inputs and workflow steps to
.github/workflows/sonatype-lifecycle.yaml(setup-go,go mod tidy, optional SBOM generation, optional REST upload). - Add self-test jobs for both Go modes in
.github/workflows/testing.yaml. - Update documentation and example usage to describe the new Go path and modes.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| examples/sonatype-lifecycle/github.yaml | Updates example comments to document build_type: go and Go-specific inputs/behavior. |
| docs/BRIEF.md | Adds decision record D20 documenting the Go build_type and the rationale for cli vs api scan modes. |
| .github/workflows/testing.yaml | Adds two CI jobs exercising Go scanning via CLI and REST API modes. |
| .github/workflows/sonatype-lifecycle.yaml | Implements Go build_type with go_scan_mode branching, including SBOM generation and REST upload path. |
Suppressed comments (4)
.github/workflows/sonatype-lifecycle.yaml:649
- In
go_scan_mode: api, generating the SBOM is required for any scan to happen. Withcontinue-on-errortied tobuild_permit_fail(default true), this step can fail yet the workflow still succeeds (and later skips the CLI scan), resulting in a green run with no scan/upload.
- name: 'Generate Go SBOM'
if: inputs.build_type == 'go' && inputs.go_scan_mode == 'api'
# yamllint disable-line rule:line-length
continue-on-error: ${{ inputs.build_permit_fail != false }}
shell: bash
.github/workflows/sonatype-lifecycle.yaml:703
- The curl config file contains credentials; if the script exits early (e.g., failed curl/jq), it may not be removed. Add an
EXITtrap immediately after creation so the credential file is always cleaned up.
# A curl config file keeps the credentials out of argv, where
# a process listing on the runner could otherwise read them.
curl_config="$(mktemp "${RUNNER_TEMP}/nexus-iq-curl.XXXXXXXXXX")"
printf 'user = "%s:%s"\n' \
"${NEXUS_IQ_USERNAME}" "${NEXUS_IQ_PASSWORD}" > "${curl_config}"
.github/workflows/sonatype-lifecycle.yaml:719
- Use
--data-binarywhen posting the SBOM file to avoid any transformation of the payload that--datamay apply; this is the usual curl idiom for uploading a file as-is.
curl -sS -f -K "${curl_config}" -X POST \
-H 'Content-Type: application/xml' \
--data '@bom.xml' "${upload_url}"
.github/workflows/sonatype-lifecycle.yaml:689
- In
go_scan_mode: api, a failed REST upload currently does not fail the job by default becausecontinue-on-erroris tied tobuild_permit_fail(default true). Since the CLI scan step is skipped in this mode, that can produce successful workflow runs where nothing was actually uploaded/scanned.
- name: 'Upload Go SBOM to Nexus IQ (REST API)'
if: inputs.build_type == 'go' && inputs.go_scan_mode == 'api'
# yamllint disable-line rule:line-length
continue-on-error: ${{ inputs.build_permit_fail != false }}
shell: bash
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
ModeSevenIndustrialSolutions
left a comment
There was a problem hiding this comment.
Thanks for this — the problem statement is well argued and the inline documentation is genuinely good, particularly the honesty about api mode not being able to gate on policy. No objection to the goal; the comments below are about shape rather than direction, plus a couple of factual updates.
Three themes, in rough order of significance.
1. The SBOM path is more general than the PR treats it
We already have lfreleng-actions/sbom-action, a syft-backed CycloneDX generator that explicitly covers "Go modules, Node.js/npm, Java, Rust, containers, binaries and further ecosystems". Both go-workflows and node-workflows already call it at the same pin, and its default sbom_spec_version is 1.5 — precisely what this PR hardcodes. python-workflows uses python-sbom-action, which mirrors the same interface by design.
Meanwhile the REST upload step added here is completely ecosystem-agnostic: resolve a UUID, POST a CycloneDX document.
Put together, the Go-specific go_scan_mode: 'api' could be a general scan_mode: 'cli' | 'sbom' that works for Go, Node.js, Java, Rust and containers immediately, and Python via python-sbom-action. That is directly relevant to a live question — we have Python and Node.js projects wanting CLM coverage — and the difference between the two framings is whether each ecosystem needs its own bespoke branch or none at all.
I would keep cli as the default regardless, for the policy-gating reason you already document.
This hinges on one unverified assumption, flagged inline: whether Nexus IQ identifies components from syft-generated CycloneDX as well as from cyclonedx-gomod output. Both should emit pkg:golang/… purls, but identification quality is exactly what differs between generators. Worth one throwaway scan against the LF instance to compare reports before anyone rewrites code on the strength of this.
2. go.sum is no longer Sonatype's recommended target
Their Go page was rewritten on 18 Feb 2026 and now recommends go.list from go list -deps as "the most accurate", describing go.sum as "may include dependencies that are not used by the application". It no longer mentions the SBOM route for Go at all — which, usefully, strengthens the "keep api as the exception" position D20 already takes. Details and the trade-offs (including a fair argument for keeping go.sum as the default through cutover) are inline.
3. Smaller items
Inline: build-metadata-action already detects Go versions in go-workflows at an older pin than this lane carries, so go_version/go_version_file may be redundant; the continue-on-error on go mod tidy can produce a silently empty scan; and the curl credentials file is not removed on failure (trap would fix it).
Unrelated to this PR, but surfaced while reviewing
docs/BRIEF.md L45–47 justifies the repository split with:
CLM is not JVM-specific.
releng-reusable-workflowsalready carries Node.js and Gradle CLM callers alongside Maven, so the lane cannot live injava-workflowswithout stranding consumers.
lfit/releng-reusable-workflows has exactly two Nexus IQ workflows — composed-maven-nexus-iq.yaml and composed-gradle-nexus-iq.yaml. Both JVM. I could not find a Node.js CLM caller on the current default branch (there may have been one historically; I only checked HEAD).
The conclusion still stands on other grounds — zizmor, Scorecard and package hardening are genuinely language-agnostic, and this PR is itself adding a non-JVM ecosystem — but the specific evidence cited does not hold, and D1's "two Nexus IQ" wrappers are probably worth naming. Happy to raise that separately rather than expand this PR's scope.
On scope
I would not fold Python or Node.js build_type support into this PR. Python has an independent case (Sonatype documents, and releng-global-jjb's nexus-iq-python-cli.sh implements, a pip download + scan-the-artefact-directory flow that is higher fidelity than any SBOM), but it deserves its own change and its own decision record. Node.js has no case for a build_type at all — the IQ CLI reads package-lock.json, npm-shrinkwrap.json, yarn.lock and pnpm-lock.yaml natively with no install step, so build_type: 'none' already works today.
Both, though, would come along for free under a generalised scan_mode, which is the main reason I think the naming question above is worth settling before this merges rather than after.
b7d9755 to
8568499
Compare
8568499 to
941973d
Compare
941973d to
cc52d5e
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.
Suppressed comments (4)
.github/workflows/sonatype-lifecycle.yaml:437
- The scan_mode validation error message concatenates strings without a separating space, producing output like "... 'sbom'(received: ...)" which is harder to read.
echo "::error::scan_mode must be 'cli' or 'sbom'" \
"(received: '${SCAN_MODE}')"
.github/workflows/sonatype-lifecycle.yaml:720
- PUBLIC_ID is interpolated into the query string without URL encoding. If application_id/publicId contains characters like spaces, '+', '&', or '=', the lookup can break or be interpreted incorrectly. Use curl's --data-urlencode to safely build the query.
app_uuid="$(curl -sS -f -K "${curl_config}" \
"${NEXUS_IQ_SERVER}/api/v2/applications?publicId=${PUBLIC_ID}" \
| jq -r '.applications[0].id // empty')"
.github/workflows/sonatype-lifecycle.yaml:226
- The PR description refers to the REST upload mode as "api", but the workflow input/value is "scan_mode: sbom". Please update the PR description (or rename the mode) so the documented configuration matches what callers must set.
scan_mode:
description: >-
How results reach Nexus IQ: 'cli' runs the Nexus IQ CLI's
build analyser against scan_targets (or go.sum for Go).
'sbom' instead generates a CycloneDX SBOM and uploads it
through the Nexus IQ REST API directly, bypassing the CLI
entirely -- mirroring legacy Jenkins Go CLM jobs with
nexus-iq-use-cli: false. Only the Go path drives 'sbom'
today, via cyclonedx-gomod. 'sbom' cannot gate on policy: the
.github/workflows/testing.yaml:86
- The PR description mentions adding a "sonatype-lifecycle-go-api" self-test job, but the workflow adds "sonatype-lifecycle-go-sbom". Please align the PR description and/or the job identifier to avoid confusion when referencing CI jobs.
sonatype-lifecycle-go-sbom:
name: 'Sonatype Lifecycle (Go, REST API)'
permissions:
contents: read
uses: ./.github/workflows/sonatype-lifecycle.yaml
with:
repository: 'lfreleng-actions/test-go-project'
build_type: 'go'
scan_mode: 'sbom'
ModeSevenIndustrialSolutions
left a comment
There was a problem hiding this comment.
Re-reviewed head cc52d5e against the previous round. Every item was either fixed, or deferred to a tracked issue with a reasoned reply — no silent drops. Verified the fixes in the diff rather than taking the replies on trust: the trap-based credential cleanup is in, continue-on-error is gone from all three Go steps with non-empty assertions beside the file each step produces, the inert-input list is complete, and D20 now records the vendor-guidance shift (dated), the rename rationale, and the deferrals with issue numbers.
On the build-metadata-action switch: confirmed against the pinned commit (504ee84 = v0.8.0) that go_go_version emits the raw go directive from go.mod and comes back empty on detection failure, so the go-version-file fallback in Setup Go is doing real work. That resolution is sound.
One new item, inline: the rename opened a validation gap where scan_mode: 'sbom' with a non-Go build_type validates clean and then silently runs a CLI scan instead of what the caller asked for. Small guard suggested, removable when #40 makes the combination meaningful.
Issue cross-references updated to match this revision: #40 (rename absorbed; generalisation, sbom-action adoption and this validation guard remain), #41 (D20 note landed; default flip plus go_scan_target shape and tidy-scoping recorded there), #43 (CLM lane done; remaining scope is sonarqube-cloud.yaml, where the shipped inputs make it a deprecation decision). #39, #42 and #44 are unchanged by this revision.
With the validation guard addressed one way or the other, this looks ready from my side.
cc52d5e to
8da6942
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.
Suppressed comments (4)
.github/workflows/sonatype-lifecycle.yaml:730
- PUBLIC_ID is interpolated directly into the query string ("...applications?publicId=${PUBLIC_ID}"). If callers supply application_id containing characters like '&', '?', or spaces, the request can be malformed or can query the wrong application. Use curl's --data-urlencode to safely encode the parameter.
app_uuid="$(curl -sS -f -K "${curl_config}" \
"${NEXUS_IQ_SERVER}/api/v2/applications?publicId=${PUBLIC_ID}" \
| jq -r '.applications[0].id // empty')"
.github/workflows/sonatype-lifecycle.yaml:741
- curl "--data" will apply form semantics (including newline normalization). For an XML payload, --data-binary is safer to ensure the SBOM is uploaded byte-for-byte as generated.
--data '@bom.xml' "${upload_url}"
.github/workflows/testing.yaml:82
- sonatype-lifecycle-go-sbom's comment says it relies on the 'cli' job above registering the application, but jobs run in parallel by default. This can make the REST API job flaky depending on timing. Add an explicit dependency so the ordering matches the assumption.
sonatype-lifecycle-go-sbom:
name: 'Sonatype Lifecycle (Go, REST API)'
permissions:
contents: read
uses: ./.github/workflows/sonatype-lifecycle.yaml
.github/workflows/sonatype-lifecycle.yaml:226
- The PR description refers to the REST API mode as scan_mode/go_scan_mode: 'api', but the workflow only documents and accepts 'sbom' (validated below as well). If 'api' is still intended, the workflow interface/docs need to accept it; otherwise the PR description should be updated to avoid confusing adopters.
scan_mode:
description: >-
How results reach Nexus IQ: 'cli' runs the Nexus IQ CLI's
build analyser against scan_targets (or go.sum for Go).
'sbom' instead generates a CycloneDX SBOM and uploads it
through the Nexus IQ REST API directly, bypassing the CLI
entirely -- mirroring legacy Jenkins Go CLM jobs with
nexus-iq-use-cli: false. Only the Go path drives 'sbom'
today, via cyclonedx-gomod. 'sbom' cannot gate on policy: the
ModeSevenIndustrialSolutions
left a comment
There was a problem hiding this comment.
Housekeeping round: verified the scan_mode/build_type validation guard on head 8da6942 (matches the suggestion, marked for removal when #40 lands — #48 closed against it), and resolved the remaining open threads now that every deferral has a tracked home: #39/#40 (sbom-action and generalisation), #41 (go.list default flip), #50 (opa-pdp parity pinning and a Gerrit Go example).
One final pre-merge request inline on testing.yaml: a one-line needs: making the go-sbom self-test's documented dependency on the cli job structural (#49). With that in — or consciously deferred — no open feedback remains from my side, and follow-up coverage is complete across #39–#44 and #50.
8da6942 to
696d8e7
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.
Suppressed comments (3)
.github/workflows/sonatype-lifecycle.yaml:730
- In the REST-API upload path, PUBLIC_ID (derived from inputs.application_id) is interpolated directly into the query string. If it contains reserved characters like
&,?, or#, the request can be malformed or query-injected. URL-encode the parameter when calling the applications endpoint.
app_uuid="$(curl -sS -f -K "${curl_config}" \
"${NEXUS_IQ_SERVER}/api/v2/applications?publicId=${PUBLIC_ID}" \
| jq -r '.applications[0].id // empty')"
.github/workflows/testing.yaml:78
- The PR description refers to a "sonatype-lifecycle-go-api" self-test job, but the workflow defines this job as
sonatype-lifecycle-go-sbom. Renaming the job id to match the documented name will make it easier to correlate CI jobs with the documentation.
sonatype-lifecycle-go-sbom:
examples/sonatype-lifecycle/github.yaml:40
- The example comment says
build_type: 'go'is used "to build first", but the Go path doesn't build; it runsgo mod tidyto preparego.sumfor scanning. Tweaking the comment avoids misleading callers.
# build_type: 'none' # 'maven', 'gradle' or 'go' to build first
sonatype-lifecycle.yaml supported build_type: 'none', 'maven' or 'gradle'; there was no Go pre-scan path, unlike the sibling sonarqube-cloud.yaml lane. ONAP policy-opa-pdp needs one to migrate off its Jenkins gerrit-nexus-iq-go-clm job. That job branches on nexus-iq-use-cli: the CLI branch runs 'go mod tidy' then points the Nexus IQ CLI's build analyser at go.sum; the REST API branch (what policy-opa-pdp actually runs, via nexus-iq-use-cli: false) instead generates a cyclonedx-gomod SBOM and uploads it directly. releng-global-jjb added the REST branch because, at the time, "CLI doesn't support [Go] properly" for a build-target scan. The new build_type: 'go' adds a scan_mode input covering both: - 'cli' (the default): 'go mod tidy', then scan_targets resolves to go.sum, unconditionally and without a caller override, so there is no scan_targets equivalent to set for Go. 'tidy' rather than 'download' is deliberate and matches legacy: a scan job's checkout is never committed back, so mutating go.sum in place is safe, and a drifting go.sum should fail the scan rather than have a download-only step silently tolerate it. - 'sbom': generates a CycloneDX SBOM with cyclonedx-gomod (go_sbom_tool_version-pinned), resolves Nexus IQ's internal application UUID for the already-resolved publicId, and POSTs the SBOM to sources/cyclonedx directly, bypassing sonatype-lifecycle-scan-action entirely. That upload has no synchronous verdict, so fail_on_policy_warnings, ignore_scanning_errors, ignore_system_errors and the iq_* CLI inputs are all inert in this mode -- matching why the legacy job never voted on its own result either. Named scan_mode rather than go_scan_mode: review on the PR pointed out that nothing about the mechanism it selects is actually Go-specific, so it was renamed while it still had no other callers. Only the Go path drives 'sbom' today; generalising it to other ecosystems and swapping in lfreleng-actions/sbom-action are tracked separately (issues lfreleng-actions#39, lfreleng-actions#40) rather than folded in here. Since scan_mode is no longer Go-scoped by name, 'Validate scan_mode input' now also rejects scan_mode: 'sbom' paired with any build_type other than 'go': every 'sbom'-mode step is still gated on build_type == 'go', so that combination previously passed validation, generated and uploaded nothing, and silently fell through to a CLI scan instead. The guard comes out again once lfreleng-actions#40 generalises 'sbom' beyond Go. None of 'go mod tidy', SBOM generation or the SBOM upload carry continue-on-error, unlike the Maven/Gradle build steps: a failed step here leaves the scan target itself stale, missing or empty, which is a materially worse outcome than the partial-but-real dependency tree a failed Maven/Gradle build can still leave behind. Both 'go mod tidy' and SBOM generation now also assert their output file (go.sum, bom.xml) is non-empty and fail loudly if not, regardless of build_permit_fail. The curl config file used for the SBOM upload's credentials is now cleaned up via trap on EXIT rather than explicit rm -f calls on each exit path. Also cites Sonatype's Go Application Analysis page (rewritten 18 Feb 2026): it no longer mentions an SBOM/CycloneDX route for Go at all, and now recommends go.list over go.sum as the CLI scan target -- the former strengthens 'sbom' staying the exception; the latter is recorded as a separate decision (issue lfreleng-actions#41) rather than acted on here, since it would change policy-opa-pdp's results from the Jenkins job it replaces. Go's toolchain version takes no caller input at all: 'Gather build metadata' now runs for build_type: 'go' too, and 'Setup Go' reads steps.metadata.outputs.go_go_version -- the same build-metadata-action already used to auto-detect java_version for Maven/Gradle, rather than a second, Go-specific go_version/go_version_file pair reading go.mod independently. Review pointed out go-workflows already derives its Go version matrix through this action, so this lane carrying its own separate detection was redundant; tracked as issue lfreleng-actions#43 before landing here. This intentionally diverges from sonarqube-cloud.yaml's own Go path, which keeps its own separate go_version/go_version_file inputs -- bringing that lane in line is left for lfreleng-actions#43 rather than done as a side effect of this one. Adds sonatype-lifecycle-go and sonatype-lifecycle-go-sbom self-test jobs against the same test-go-project fixture the SonarQube Cloud lane already uses, updates the GitHub example's build_type comment, and documents the decision as D20 in docs/BRIEF.md. Co-Authored-By: Claude <[email protected]> Signed-off-by: Kevin Sandi <[email protected]>
696d8e7 to
5551024
Compare
95732d4
into
lfreleng-actions:main
Break-point review of the repository against docs/BRIEF.md, taken after PR lfreleng-actions#38 (Go build_type for the CLM lane, v0.3.0) merged. Inventories the seven open issues with their post-lfreleng-actions#38 remaining scope, groups them into three clusters (SBOM transport generalisation, ONAP Go migration, consistency/docs), and records estate research findings: sbom-action / python-sbom-action fitness for the Nexus IQ REST upload, build-metadata-action coverage, the missing Python dependency-resolution primitive, and the artefact transport gap between build and scan jobs. Sets out a four-phase development plan, sequencing the lfreleng-actions#39 syft ingestion spike and the lfreleng-actions#50 policy-opa-pdp parity migration first, the lfreleng-actions#40 SBOM transport consolidation second, better defaults and new ecosystems third, and a new build-artifact-action pack/unpack pair fourth, plus the deployment order for ONAP, O-RAN-SC and OpenDaylight. Records the docker-save-images-action v0.2.0 archive modes and the in-flight grype-scan-action as design inputs, with a borrow-not-share rule for code reuse across action repositories. Co-authored-by: Claude <[email protected]> Signed-off-by: Matthew Watkins <[email protected]>
Break-point review of the repository against docs/BRIEF.md, taken after PR lfreleng-actions#38 (Go build_type for the CLM lane, v0.3.0) merged. Inventories the seven open issues with their post-lfreleng-actions#38 remaining scope, groups them into three clusters (SBOM transport generalisation, ONAP Go migration, consistency/docs), and records estate research findings: sbom-action / python-sbom-action fitness for the Nexus IQ REST upload, build-metadata-action coverage, the missing Python dependency-resolution primitive, and the artefact transport gap between build and scan jobs. Sets out a four-phase development plan, sequencing the lfreleng-actions#39 syft ingestion spike and the lfreleng-actions#50 policy-opa-pdp parity migration first, the lfreleng-actions#40 SBOM transport consolidation second, better defaults and new ecosystems third, and a new build-artifact-action pack/unpack pair fourth, plus the deployment order for ONAP, O-RAN-SC and OpenDaylight. Records the docker-save-images-action v0.2.0 archive modes and the in-flight grype-scan-action as design inputs, with a borrow-not-share rule for code reuse across action repositories. Extends the write-good exclusion to the new document, matching the existing BRIEF.md exemption for design-decisions records. Co-authored-by: Claude <[email protected]> Signed-off-by: Matthew Watkins <[email protected]>
Break-point review of the repository against docs/BRIEF.md, taken after PR lfreleng-actions#38 (Go build_type for the CLM lane, v0.3.0) merged. Inventories the seven open issues with their post-lfreleng-actions#38 remaining scope, groups them into three clusters (SBOM transport generalisation, ONAP Go migration, consistency/docs), and records estate research findings: sbom-action / python-sbom-action fitness for the Nexus IQ REST upload, build-metadata-action coverage, the missing Python dependency-resolution primitive, and the artefact transport gap between build and scan jobs. Sets out a four-phase development plan, sequencing the lfreleng-actions#39 syft ingestion spike and the lfreleng-actions#50 policy-opa-pdp parity migration first, the lfreleng-actions#40 SBOM transport consolidation second, better defaults and new ecosystems third, and a new build-artifact-action pack/unpack pair fourth, plus the deployment order for ONAP, O-RAN-SC and OpenDaylight. Records the docker-save-images-action v0.2.0 archive modes and the in-flight grype-scan-action as design inputs, with a borrow-not-share rule for code reuse across action repositories. Extends the write-good exclusion to the new document, matching the existing BRIEF.md exemption for design-decisions records. Co-authored-by: Claude <[email protected]> Signed-off-by: Matthew Watkins <[email protected]>
Break-point review of the repository against docs/BRIEF.md, taken after PR lfreleng-actions#38 (Go build_type for the CLM lane, v0.3.0) merged. Inventories the seven open issues with their post-lfreleng-actions#38 remaining scope, groups them into three clusters (SBOM transport generalisation, ONAP Go migration, consistency/docs), and records estate research findings: sbom-action / python-sbom-action fitness for the Nexus IQ REST upload, build-metadata-action coverage, the missing Python dependency-resolution primitive, and the artefact transport gap between build and scan jobs. Sets out a four-phase development plan, sequencing the lfreleng-actions#39 syft ingestion spike and the lfreleng-actions#50 policy-opa-pdp parity migration first, the lfreleng-actions#40 SBOM transport consolidation second, better defaults and new ecosystems third, and a new build-artifact-action pack/unpack pair fourth, plus the deployment order for ONAP, O-RAN-SC and OpenDaylight. Records the docker-save-images-action v0.2.0 archive modes and the in-flight grype-scan-action as design inputs, with a borrow-not-share rule for code reuse across action repositories. Extends the write-good exclusion to the new document, matching the existing BRIEF.md exemption for design-decisions records. Co-authored-by: Claude <[email protected]> Signed-off-by: Matthew Watkins <[email protected]>
Break-point review of the repository against docs/BRIEF.md, taken after PR lfreleng-actions#38 (Go build_type for the CLM lane, v0.3.0) merged. Inventories the seven open issues with their post-lfreleng-actions#38 remaining scope, groups them into three clusters (SBOM transport generalisation, ONAP Go migration, consistency/docs), and records estate research findings: sbom-action / python-sbom-action fitness for the Nexus IQ REST upload, build-metadata-action coverage, the missing Python dependency-resolution primitive, and the artefact transport gap between build and scan jobs. Sets out a four-phase development plan, sequencing the lfreleng-actions#39 syft ingestion spike and the lfreleng-actions#50 policy-opa-pdp parity migration first, the lfreleng-actions#40 SBOM transport consolidation second, better defaults and new ecosystems third, and a new build-artifact-action pack/unpack pair fourth, plus the deployment order for ONAP, O-RAN-SC and OpenDaylight. Records the docker-save-images-action v0.2.0 archive modes and the in-flight grype-scan-action as design inputs, with a borrow-not-share rule for code reuse across action repositories. Extends the write-good exclusion to the new document, matching the existing BRIEF.md exemption for design-decisions records. Co-authored-by: Claude <[email protected]> Signed-off-by: Matthew Watkins <[email protected]>
Break-point review of the repository against docs/BRIEF.md, taken after PR lfreleng-actions#38 (Go build_type for the CLM lane, v0.3.0) merged. Inventories the seven open issues with their post-lfreleng-actions#38 remaining scope, groups them into three clusters (SBOM transport generalisation, ONAP Go migration, consistency/docs), and records estate research findings: sbom-action / python-sbom-action fitness for the Nexus IQ REST upload, build-metadata-action coverage, the missing Python dependency-resolution primitive, and the artefact transport gap between build and scan jobs. Sets out a four-phase development plan, sequencing the lfreleng-actions#39 syft ingestion spike and the lfreleng-actions#50 policy-opa-pdp parity migration first, the lfreleng-actions#40 SBOM transport consolidation second, better defaults and new ecosystems third, and a new build-artifact-action pack/unpack pair fourth, plus the deployment order for ONAP, O-RAN-SC and OpenDaylight. Records the docker-save-images-action v0.2.0 archive modes and the in-flight grype-scan-action as design inputs, with a borrow-not-share rule for code reuse across action repositories. Extends the write-good exclusion to the new document, matching the existing BRIEF.md exemption for design-decisions records. Co-authored-by: Claude <[email protected]> Signed-off-by: Matthew Watkins <[email protected]>
Break-point review of the repository against docs/BRIEF.md, taken after PR lfreleng-actions#38 (Go build_type for the CLM lane, v0.3.0) merged. Inventories the seven open issues with their post-lfreleng-actions#38 remaining scope, groups them into three clusters (SBOM transport generalisation, ONAP Go migration, consistency/docs), and records estate research findings: sbom-action / python-sbom-action fitness for the Nexus IQ REST upload, build-metadata-action coverage, the missing Python dependency-resolution primitive, and the artefact transport gap between build and scan jobs. Sets out a four-phase development plan, sequencing the lfreleng-actions#39 syft ingestion spike and the lfreleng-actions#50 policy-opa-pdp parity migration first, the lfreleng-actions#40 SBOM transport consolidation second, better defaults and new ecosystems third, and a new build-artifact-action pack/unpack pair fourth, plus the deployment order for ONAP, O-RAN-SC and OpenDaylight. Records the docker-save-images-action v0.2.0 archive modes and the in-flight grype-scan-action as design inputs, with a borrow-not-share rule for code reuse across action repositories. Extends the write-good exclusion to the new document, matching the existing BRIEF.md exemption for design-decisions records. Co-authored-by: Claude <[email protected]> Signed-off-by: Matthew Watkins <[email protected]>
Break-point review of the repository against docs/BRIEF.md, taken after PR lfreleng-actions#38 (Go build_type for the CLM lane, v0.3.0) merged. Inventories the seven open issues with their post-lfreleng-actions#38 remaining scope, groups them into three clusters (SBOM transport generalisation, ONAP Go migration, consistency/docs), and records estate research findings: sbom-action / python-sbom-action fitness for the Nexus IQ REST upload, build-metadata-action coverage, the missing Python dependency-resolution primitive, and the artefact transport gap between build and scan jobs. Sets out a four-phase development plan, sequencing the lfreleng-actions#39 syft ingestion spike and the lfreleng-actions#50 policy-opa-pdp parity migration first, the lfreleng-actions#40 SBOM transport consolidation second, better defaults and new ecosystems third, and a new build-artifact-action pack/unpack pair fourth, plus the deployment order for ONAP, O-RAN-SC and OpenDaylight. Records the docker-save-images-action v0.2.0 archive modes and the in-flight grype-scan-action as design inputs, with a borrow-not-share rule for code reuse across action repositories. Extends the write-good exclusion to the new document, matching the existing BRIEF.md exemption for design-decisions records. Co-authored-by: Claude <[email protected]> Signed-off-by: Matthew Watkins <[email protected]>
Break-point review of the repository against docs/BRIEF.md, taken after PR lfreleng-actions#38 (Go build_type for the CLM lane, v0.3.0) merged. Inventories the seven open issues with their post-lfreleng-actions#38 remaining scope, groups them into three clusters (SBOM transport generalisation, ONAP Go migration, consistency/docs), and records estate research findings: sbom-action / python-sbom-action fitness for the Nexus IQ REST upload, build-metadata-action coverage, the missing Python dependency-resolution primitive, and the artefact transport gap between build and scan jobs. Sets out a four-phase development plan, sequencing the lfreleng-actions#39 syft ingestion spike and the lfreleng-actions#50 policy-opa-pdp parity migration first, the lfreleng-actions#40 SBOM transport consolidation second, better defaults and new ecosystems third, and a new build-artifact-action pack/unpack pair fourth, plus the deployment order for ONAP, O-RAN-SC and OpenDaylight. Records the docker-save-images-action v0.2.0 archive modes and the in-flight grype-scan-action as design inputs, with a borrow-not-share rule for code reuse across action repositories. Extends the write-good exclusion to the new document, matching the existing BRIEF.md exemption for design-decisions records. Co-authored-by: Claude <[email protected]> Signed-off-by: Matthew Watkins <[email protected]>
Break-point review of the repository against docs/BRIEF.md, taken after PR lfreleng-actions#38 (Go build_type for the CLM lane, v0.3.0) merged. Inventories the seven open issues with their post-lfreleng-actions#38 remaining scope, groups them into three clusters (SBOM transport generalisation, ONAP Go migration, consistency/docs), and records estate research findings: sbom-action / python-sbom-action fitness for the Nexus IQ REST upload, build-metadata-action coverage, the missing Python dependency-resolution primitive, and the artefact transport gap between build and scan jobs. Sets out a four-phase development plan, sequencing the lfreleng-actions#39 syft ingestion spike and the lfreleng-actions#50 policy-opa-pdp parity migration first, the lfreleng-actions#40 SBOM transport consolidation second, better defaults and new ecosystems third, and a new build-artifact-action pack/unpack pair fourth, plus the deployment order for ONAP, O-RAN-SC and OpenDaylight. Records the docker-save-images-action v0.2.0 archive modes and the in-flight grype-scan-action as design inputs, with a borrow-not-share rule for code reuse across action repositories. Extends the write-good exclusion to the new document, matching the existing BRIEF.md exemption for design-decisions records. Co-authored-by: Claude <[email protected]> Signed-off-by: Matthew Watkins <[email protected]>
Break-point review of the repository against docs/BRIEF.md, taken after PR lfreleng-actions#38 (Go build_type for the CLM lane, v0.3.0) merged. Inventories the seven open issues with their post-lfreleng-actions#38 remaining scope, groups them into three clusters (SBOM transport generalisation, ONAP Go migration, consistency/docs), and records estate research findings: sbom-action / python-sbom-action fitness for the Nexus IQ REST upload, build-metadata-action coverage, the missing Python dependency-resolution primitive, and the artefact transport gap between build and scan jobs. Sets out a four-phase development plan, sequencing the lfreleng-actions#39 syft ingestion spike and the lfreleng-actions#50 policy-opa-pdp parity migration first, the lfreleng-actions#40 SBOM transport consolidation second, better defaults and new ecosystems third, and a new build-artifact-action pack/unpack pair fourth, plus the deployment order for ONAP, O-RAN-SC and OpenDaylight. Records the docker-save-images-action v0.2.0 archive modes and the in-flight grype-scan-action as design inputs, with a borrow-not-share rule for code reuse across action repositories. Extends the write-good exclusion to the new document, matching the existing BRIEF.md exemption for design-decisions records. Co-authored-by: Claude <[email protected]> Signed-off-by: Matthew Watkins <[email protected]>
Break-point review of the repository against docs/BRIEF.md, taken after PR lfreleng-actions#113 merged, with v0.8.0 the latest release. Revises the first review, written after PR lfreleng-actions#38 and v0.3.0, against what the cycle since then delivered. Records seventeen issues closed across ten releases, and the four places the previous plan was wrong: lfreleng-actions#43 closed the opposite way, because build metadata was the defect D21 records; lfreleng-actions#41 was never blocked, since the policy-opa-pdp cutover had already happened; lfreleng-actions#59 and lfreleng-actions#60 closed as evidence-backed decisions rather than features; and lfreleng-actions#42's consumer gate passed, with three O-RAN-SC projects found. Adds an estate adoption survey: 55 repositories across ONAP and OpenDaylight call the lanes, 21 calls still pinned to v0.3.0, and no O-RAN-SC callers yet. Reports honestly that neither course correction the first review raised was acted on: inline shell in the CLM lane grew from 127 to 323 lines, and the build-scan artefact interface is unstarted. Leads the remaining work with proving what already shipped: testing.yaml has run six times, all in July, and the fixture applications on the Nexus IQ server hold no reports. Then the v0.9.0 release carrying the Python build type, the v0.3.0 callers, O-RAN-SC onboarding, and the SBOM transport still blocked on lfreleng-actions#39. Extends the write-good exclusion to the new document, matching the existing BRIEF.md exemption for design-decisions records. Co-authored-by: Claude <[email protected]> Signed-off-by: Matthew Watkins <[email protected]>
Break-point review of the repository against docs/BRIEF.md, taken after PR lfreleng-actions#114 merged, with v0.9.1 the latest release. Revises the first review, written after PR lfreleng-actions#38 and v0.3.0, against what the cycle since then delivered. Records twenty issues closed across twelve releases, leaving none open, and the five places the previous plan was wrong: lfreleng-actions#43 closed the opposite way, because build metadata was the defect D21 records; lfreleng-actions#41 was never blocked, since the policy-opa-pdp cutover had already happened; lfreleng-actions#59 and lfreleng-actions#60 closed as evidence-backed decisions; lfreleng-actions#42's consumer gate passed, with three O-RAN-SC projects found; and lfreleng-actions#39 was answered without the upload the plan assumed, with lfreleng-actions#40 then closed as a decision rather than built (D25). Adds an estate adoption survey: 55 repositories across ONAP and OpenDaylight call the lanes, 18 calls still pinned to v0.3.0, and no O-RAN-SC callers yet. Reports honestly that neither course correction the first review raised was acted on: inline shell in the CLM lane grew from 127 to 323 lines, and the build-scan artefact interface is unstarted. Leads the remaining work with proving what already shipped: testing.yaml has never been dispatched since it became dispatch-only, and the submodule legs also need their SonarCloud project and Nexus IQ application provisioned. Then rollout, the Nexus IQ upload extraction D25 left standing on its own merits, and build-artifact-action. Extends the write-good exclusion to the new document, matching the existing BRIEF.md exemption for design-decisions records. Co-authored-by: Claude <[email protected]> Signed-off-by: Matthew Watkins <[email protected]>
sonatype-lifecycle.yaml supported build_type: 'none', 'maven' or 'gradle'; there was no Go pre-scan path, unlike the sibling sonarqube-cloud.yaml lane. ONAP policy-opa-pdp needs one to migrate off its Jenkins gerrit-nexus-iq-go-clm job.
That job branches on nexus-iq-use-cli: the CLI branch runs 'go mod tidy' then points the Nexus IQ CLI's build analyser at go.sum; the REST API branch (what policy-opa-pdp actually runs, via nexus-iq-use-cli: false) instead generates a cyclonedx-gomod SBOM and uploads it directly. releng-global-jjb added the REST branch because, at the time, "CLI doesn't support [Go] properly" for a build-target scan.
The new build_type: 'go' adds a go_scan_mode input covering both:
go_version/go_version_file follow the same shape as sonarqube-cloud.yaml's existing Go path: empty go_version reads the 'go' directive from go_version_file (default go.mod) via actions/setup-go.
Adds sonatype-lifecycle-go and sonatype-lifecycle-go-api self-test jobs against the same test-go-project fixture the SonarQube Cloud lane already uses, updates the GitHub example's build_type comment, and documents the decision as D20 in docs/BRIEF.md.