Repository navigation
Conversation
ModeSevenIndustrialSolutions
requested review from
a team
and
a balanced review from Copilot
September 23, 2026 17:44
ModeSevenIndustrialSolutions
force-pushed
the
test/submodule-scan-contents
branch
from
September 23, 2026 18:02
4bf9ca3 to
beb944c
Compare
ModeSevenIndustrialSolutions
force-pushed
the
test/submodule-scan-contents
branch
from
September 23, 2026 18:15
beb944c to
2c3d910
Compare
ModeSevenIndustrialSolutions
force-pushed
the
test/submodule-scan-contents
branch
from
September 23, 2026 18:27
2c3d910 to
2bd4250
Compare
Both lanes hand 'submodules' to actions/checkout, and a fault there is silent by construction: the scan keeps passing against less code. No fixture carried a submodule, so nothing could catch it. lfreleng-actions/test-python-submodules now does, with three nested levels. Each carries something no other level does: a pinned requirements.txt line, which Nexus IQ identifies, and a marker file, which Sonar indexes. So a level's marker in the result proves the level was scanned, and its absence proves it was not. Neither lane reports what it analysed, and neither scan action does, so tests/scan_contents.py asks the server afterwards: the newest build-stage Nexus IQ report, or the latest Sonar analysis's files. Scan each lane twice. 'recursive' must yield all three levels. 'true' must yield the direct level and not the nested one: a negative control proving the check can fail, which also catches a lane that ignores the input and always recurses. Attribute each result to its own scan by the server's record, never the runner's clock. Before a lane's first scan, a baseline records the newest result the server holds. An assert then accepts only a result with a different identity, strictly newer by the server's clock, and emits it as the next leg's baseline. Identity settles the same-second case a whole-second timestamp cannot, and comparing the server with itself leaves no clock skew. Make testing.yaml one run at a time across all refs, never cancelled. Every credentialled leg scans into a server-side project shared by every run, so overlapping dispatches from two branches could each read the other's result, and a cancelled scan can still finish processing after its replacement starts. Pin one fixture commit for every leg, so a push to the fixture mid-run cannot leave the two checkout modes on different trees. Pin every Sonar scan to one branch, and query that branch. Left unnamed, the scanner's GitHub Actions auto-configuration analyses under the ref that dispatched the run, so a run from a branch under review would land where the assertion never reads, and it would then reject a correct scan as stale. sonar_branch_name and the script's queries both name main. Name the Sonar project on both scan legs, as the branch already is. The lane's sonar_project_key and sonar_organization override the fixture's sonar-project.properties, so the scan and the assertion name one project whatever that file says, and these legs no longer wait on the fixture's own key correction to merge. A Sonar 404 now names both of its causes: an unknown key, or a branch nothing has analysed yet. Request the component tree with strategy=all. The default does recurse today, checked live to two levels, but the markers sit below the root and 'children' would return none of them, so naming the traversal says what the check needs. The assertion runs as a reusable workflow, so its credentials arrive as declared workflow_call secrets, as every lane receives them. Inline jobs reading secrets directly drew four zizmor secrets-outside-env findings. Verified against both servers, read-only. Twenty-five offline cases, run on every PR, stub them in the shapes captured live; dropping the identity check, relaxing the strict ordering, removing the absent-direction check, the stage filter or the branch each fails the case written for it. Copilot review rounds 1 to 4. Closes: lfreleng-actions#74 Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
ModeSevenIndustrialSolutions
force-pushed
the
test/submodule-scan-contents
branch
from
September 23, 2026 18:38
2bd4250 to
bc1c6c5
Compare
This was referenced Sep 25, 2026
ModeSevenIndustrialSolutions
enabled auto-merge
September 29, 2026 14:30
tykeal
approved these changes
Sep 30, 2026
tykeal
disabled auto-merge
September 30, 2026 12:36
ModeSevenIndustrialSolutions
added a commit
to modeseven-lfreleng-actions/security-workflows
that referenced
this pull request
Sep 30, 2026
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 <noreply@anthropic.com> Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
ModeSevenIndustrialSolutions
added a commit
to modeseven-lfreleng-actions/security-workflows
that referenced
this pull request
Sep 30, 2026
Copilot review round 1. Separate the release count from the issue count. The twelve releases end at v0.9.1, but the twentieth issue, lfreleng-actions#74, closed when PR lfreleng-actions#114 merged three hours after that tag, so the headline implied it had shipped. It now says lfreleng-actions#74 waits for v0.9.2, as Remaining work does. Narrow the harness claim. workflow-tests.yaml triggers only on pull requests changing a workflow or a test, not on every pull request; this documentation change did not trigger it. Update the passages still saying no fixture carries a 'toolchain' directive. test-go-project declares go 1.25 and toolchain go1.25.0, and assert-go-toolchain enforces it, but D21 in the BRIEF and two comments in testing.yaml described the skip branch as the live path. The branch stays as a guard against the fixture losing its directive; only its wording and its pointer to the closed lfreleng-actions#75 change, so no behaviour does. Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
ModeSevenIndustrialSolutions
added a commit
to modeseven-lfreleng-actions/security-workflows
that referenced
this pull request
Sep 30, 2026
Copilot review rounds 1 and 2. Separate the release count from the issue count. The twelve releases end at v0.9.1, but the twentieth issue, lfreleng-actions#74, closed when PR lfreleng-actions#114 merged three hours after that tag, so the headline implied it had shipped. It now says lfreleng-actions#74 waits for v0.9.2, as Remaining work does. State what the per-PR harness covers, and no more. It runs only on pull requests changing a workflow or a test, not on every one; it covers the lanes' validation and hook steps, not their builds, scans or the Nexus IQ upload; and mutation testing sampled its checks rather than proving each can fail. Three passages claimed more. Describe sbom-action's Gradle support as it stands. v0.2.0 runs cyclonedx-gradle-plugin, with its own gradle_plugin_version input; the document still said the Gradle plugin was yet to join. Update the passages still saying no fixture carries a 'toolchain' directive. test-go-project declares go 1.25 and toolchain go1.25.0, and assert-go-toolchain enforces it, but D21 in the BRIEF and two comments in testing.yaml described the skip branch as the live path. The branch stays as a guard against the fixture losing its directive; only its wording and its pointer to the closed lfreleng-actions#75 change, so no behaviour does. Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
ModeSevenIndustrialSolutions
added a commit
to modeseven-lfreleng-actions/security-workflows
that referenced
this pull request
Sep 30, 2026
Copilot review rounds 1 to 3. Separate the release count from the issue count. The twelve releases end at v0.9.1, but the twentieth issue, lfreleng-actions#74, closed when PR lfreleng-actions#114 merged three hours after that tag, so the headline implied it had shipped. It now says lfreleng-actions#74 waits for v0.9.2, as Remaining work does. State what the per-PR harness covers, and no more. It runs only on pull requests changing a workflow or a test, not on every one; it covers the lanes' validation and hook steps, not their builds, scans or the Nexus IQ upload; and mutation testing sampled its checks rather than proving each can fail. Three passages claimed more. Describe sbom-action's Gradle support as it stands. v0.2.0 runs cyclonedx-gradle-plugin, with its own gradle_plugin_version input; the document still said the Gradle plugin was yet to join. Add PR lfreleng-actions#116 to the immediate work. The openssf-scorecard lane has never published a result: the Scorecard API rejects its expression-valued runs-on, and scorecard-action exits 0, so every run is green while nothing arrives, for callers such as onap/cps too. The plan omitted this and called v0.9.2 unnecessary for callers. It now leads the immediate work with a release and proof of publication, and names the defect where the lanes are listed and in the risk register. Call the sibling actions references, not dependencies: no workflow here uses grype-scan-action, sbom-action or python-sbom-action. Date the CLM lane's size, now 326 lines of run: shell in a 1,188- line file on main, rather than quote an earlier snapshot as current. Update the passages still saying no fixture carries a 'toolchain' directive. test-go-project declares go 1.25 and toolchain go1.25.0, and assert-go-toolchain enforces it, but D21 in the BRIEF and two comments in testing.yaml described the skip branch as the live path. The branch stays as a guard against the fixture losing its directive; only its wording and its pointer to the closed lfreleng-actions#75 change, so no behaviour does. Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
ModeSevenIndustrialSolutions
added a commit
to modeseven-lfreleng-actions/security-workflows
that referenced
this pull request
Sep 30, 2026
Copilot review rounds 1 to 4. Separate the release count from the issue count. The twelve releases end at v0.9.1, but the twentieth issue, lfreleng-actions#74, closed when PR lfreleng-actions#114 merged three hours after that tag, so the headline implied it had shipped. It now says lfreleng-actions#74 waits for v0.9.2, as Remaining work does. State what the per-PR harness covers, and no more. It runs only on pull requests changing a workflow or a test, not on every one; it covers the lanes' validation and hook steps, not their builds, scans or the Nexus IQ upload; and mutation testing sampled its checks rather than proving each can fail. Three passages claimed more. Describe sbom-action's Gradle support as it stands. v0.2.0 runs cyclonedx-gradle-plugin, with its own gradle_plugin_version input; the document still said the Gradle plugin was yet to join. Add PR lfreleng-actions#116 to the immediate work. The openssf-scorecard lane has never published a result: the Scorecard API rejects its expression-valued runs-on, and scorecard-action exits 0, so every run is green while nothing arrives, for callers such as onap/cps too. The plan omitted this and called v0.9.2 unnecessary for callers. It now leads the immediate work with a release and proof of publication, and names the defect where the lanes are listed and in the risk register. Call the sibling actions references, not dependencies: no workflow here uses grype-scan-action, sbom-action or python-sbom-action. Date the CLM lane's size, now 326 lines of run: shell in a 1,188- line file on main, rather than quote an earlier snapshot as current. Update the passages still saying no fixture carries a 'toolchain' directive. test-go-project declares go 1.25 and toolchain go1.25.0, and assert-go-toolchain enforces it, but D21 in the BRIEF and two comments in testing.yaml described the skip branch as the live path. The branch stays as a guard against the fixture losing its directive; only its wording and its pointer to the closed lfreleng-actions#75 change, so no behaviour does. Count the adoption table in calls, not files. Two workflow files, onap/policy-opa-pdp security-audits.yaml and onap/multicloud-framework gerrit-clm.yaml, call the lanes twice, so 61 files make 63 calls: v0.5.0 rises to 4 and v0.8.0 to 17. Each file was read in full; the search fragments alone undercount. Order the immediate work by prerequisite. Provisioning the fixture's Sonar project and IQ application, and settling the IQ credential, now come before the testing.yaml dispatch that depends on them, and the lfreleng-actions#116 merge leads, with its proof following the v0.9.2 release. Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
ModeSevenIndustrialSolutions
added a commit
to modeseven-lfreleng-actions/security-workflows
that referenced
this pull request
Sep 30, 2026
Copilot review rounds 1 to 5. Separate the release count from the issue count. The twelve releases end at v0.9.1, but the twentieth issue, lfreleng-actions#74, closed when PR lfreleng-actions#114 merged three hours after that tag, so the headline implied it had shipped. It now says lfreleng-actions#74 waits for v0.9.2, as Remaining work does. State what the per-PR harness covers, and no more. It runs only on pull requests changing a workflow or a test, not on every one; it covers the lanes' validation and hook steps, not their builds, scans or the Nexus IQ upload; and mutation testing sampled its checks rather than proving each can fail. Three passages claimed more. Describe sbom-action's Gradle support as it stands. v0.2.0 runs cyclonedx-gradle-plugin, with its own gradle_plugin_version input; the document still said the Gradle plugin was yet to join. Add PR lfreleng-actions#116 to the immediate work. The openssf-scorecard lane has never published a result: the Scorecard API rejects its expression-valued runs-on, and scorecard-action exits 0, so every run is green while nothing arrives, for callers such as onap/cps too. The plan omitted this and called v0.9.2 unnecessary for callers. It now leads the immediate work, and the defect is named where the lanes are listed and in the risk register. Call the sibling actions references, not dependencies: no workflow here uses grype-scan-action, sbom-action or python-sbom-action. Date the CLM lane's size, now 326 lines of run: shell in a 1,188- line file on main, rather than quote an earlier snapshot as current. Update the passages still saying no fixture carries a 'toolchain' directive. test-go-project declares go 1.25 and toolchain go1.25.0, and assert-go-toolchain enforces it, but D21 in the BRIEF and two comments in testing.yaml described the skip branch as the live path. The branch stays as a guard against the fixture losing its directive; only its wording and its pointer to the closed lfreleng-actions#75 change, so no behaviour does. Count the adoption table in calls, not files. Two workflow files, onap/policy-opa-pdp security-audits.yaml and onap/multicloud-framework gerrit-clm.yaml, call the lanes twice, so 61 files make 63 calls: v0.5.0 rises to 4 and v0.8.0 to 17. Each file was read in full; the search fragments alone undercount. Order the immediate work by prerequisite. Provisioning the fixture's Sonar project and IQ application, and settling the IQ credential, now come before the testing.yaml dispatch that depends on them, and the lfreleng-actions#116 merge leads. Prove Scorecard publishing only after the release that carries the fix. The merge item claimed the proof before v0.9.2 shipped; the proof is now its own item, and graph node, after the release. Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
ModeSevenIndustrialSolutions
added a commit
to modeseven-lfreleng-actions/security-workflows
that referenced
this pull request
Sep 30, 2026
Copilot review rounds 1 to 6. Separate the release count from the issue count. The twelve releases end at v0.9.1, but the twentieth issue, lfreleng-actions#74, closed when PR lfreleng-actions#114 merged three hours after that tag, so the headline implied it had shipped. It now says lfreleng-actions#74 waits for v0.9.2, as Remaining work does. State what the per-PR harness covers, and no more. It runs only on pull requests changing a workflow or a test, not on every one; it covers the lanes' validation and hook steps, not their builds, scans or the Nexus IQ upload; and mutation testing sampled its checks rather than proving each can fail. Three passages claimed more. Describe sbom-action's Gradle support as it stands. v0.2.0 runs cyclonedx-gradle-plugin, with its own gradle_plugin_version input; the document still said the Gradle plugin was yet to join. Add PR lfreleng-actions#116 to the immediate work. The openssf-scorecard lane has never published a result: the Scorecard API rejects its expression-valued runs-on, and scorecard-action exits 0, so every run is green while nothing arrives, for callers such as onap/cps too. The plan omitted this and called v0.9.2 unnecessary for callers. It now leads the immediate work, and the defect is named where the lanes are listed and in the risk register. Call the sibling actions references, not dependencies: no workflow here uses grype-scan-action, sbom-action or python-sbom-action. Date the CLM lane's size, now 326 lines of run: shell in a 1,188- line file on main, rather than quote an earlier snapshot as current. Update the passages still saying no fixture carries a 'toolchain' directive. test-go-project declares go 1.25 and toolchain go1.25.0, and assert-go-toolchain enforces it, but D21 in the BRIEF and two comments in testing.yaml described the skip branch as the live path. The branch stays as a guard against the fixture losing its directive; only its wording and its pointer to the closed lfreleng-actions#75 change, so no behaviour does. Count the adoption table in calls, not files. Two workflow files, onap/policy-opa-pdp security-audits.yaml and onap/multicloud-framework gerrit-clm.yaml, call the lanes twice, so 61 files make 63 calls: v0.5.0 rises to 4 and v0.8.0 to 17. Each file was read in full; the search fragments alone undercount. Order the immediate work by prerequisite. Provisioning the fixture's Sonar project and IQ application now comes before the testing.yaml dispatch that depends on it, and the lfreleng-actions#116 merge leads. The IQ credential folds into that dispatch, the only thing that can test it, with a retry once the secret is corrected. Prove Scorecard publishing only after the release that carries the fix. The merge item claimed the proof before v0.9.2 shipped; the proof is now its own item, and graph node, after the release. Its test is a fresh API result whose date and commit match a v0.9.2 run, not a changed score: a working fix may score the same, and the API already holds older results for onap/cps and this repository. Name the lfreleng-actions#116 defect where the issue inventory says what work remains, rather than calling none of it a defect. Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
ModeSevenIndustrialSolutions
added a commit
to modeseven-lfreleng-actions/security-workflows
that referenced
this pull request
Sep 30, 2026
Copilot review rounds 1 to 7. Separate the release count from the issue count. The twelve releases end at v0.9.1, but the twentieth issue, lfreleng-actions#74, closed when PR lfreleng-actions#114 merged three hours after that tag, so the headline implied it had shipped. It now says lfreleng-actions#74 waits for v0.9.2, as Remaining work does. State what the per-PR harness covers, and no more. It runs only on pull requests changing a workflow or a test, not on every one; it covers the lanes' validation and hook steps, not their builds, scans or the Nexus IQ upload; and mutation testing sampled its checks rather than proving each can fail. Three passages claimed more. Describe sbom-action's Gradle support as it stands. v0.2.0 runs cyclonedx-gradle-plugin, with its own gradle_plugin_version input; the document still said the Gradle plugin was yet to join. Add PR lfreleng-actions#116 to the immediate work. The openssf-scorecard lane has never published a result: the Scorecard API rejects its expression-valued runs-on, and scorecard-action exits 0, so every run is green while nothing arrives, for callers such as onap/cps too. The plan omitted this and called v0.9.2 unnecessary for callers. It now leads the immediate work, and the defect is named where the lanes are listed and in the risk register. Call the sibling actions references, not dependencies: no workflow here uses grype-scan-action, sbom-action or python-sbom-action. Date the CLM lane's size, now 326 lines of run: shell in a 1,188- line file on main, rather than quote an earlier snapshot as current. Update the passages still saying no fixture carries a 'toolchain' directive. test-go-project declares go 1.25 and toolchain go1.25.0, and assert-go-toolchain enforces it, but D21 in the BRIEF and three comments in testing.yaml described the skip branch as the live path, or the fixture's toolchain edit as still pending. The branch stays as a guard against the fixture losing its directive; only its wording and its pointer to the closed lfreleng-actions#75 change, so no behaviour does. Count the adoption table in calls, not files. Two workflow files, onap/policy-opa-pdp security-audits.yaml and onap/multicloud-framework gerrit-clm.yaml, call the lanes twice, so 61 files make 63 calls: v0.5.0 rises to 4 and v0.8.0 to 17. Each file was read in full; the search fragments alone undercount. Order the immediate work by prerequisite. Provisioning the fixture's Sonar project and IQ application now comes before the testing.yaml dispatch that depends on it, and the lfreleng-actions#116 merge leads. The IQ credential folds into that dispatch, the only thing that can test it, with a retry once the secret is corrected. Prove Scorecard publishing only after the release that carries the fix. The merge item claimed the proof before v0.9.2 shipped; the proof is now its own item, and graph node, after the release. Its test is a fresh API result whose date and commit match a v0.9.2 run, not a changed score: a working fix may score the same, and the API already holds older results for onap/cps and this repository. Name the lfreleng-actions#116 defect where the issue inventory says what work remains, rather than calling none of it a defect. Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
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
Asserts that submodule content actually reaches both scans, using the new
lfreleng-actions/test-python-submodulesfixture. A single commit.Closes #74.
Related: lfreleng-actions/test-python-submodules#1 corrects the fixture's own Sonar project key. This PR does not depend on it merging, because the Sonar legs name the project explicitly (see below).
The problem
Both lanes hand
submodulestoactions/checkout, and a fault there is silent by construction: the scan keeps passing against less code (the D12 failure mode). No fixture carried a submodule, so nothing could catch it.The fixture
test-python-submodulesnests three levels in one repository on one branch, with each submodule pinning an earlier commit of the samemain. Each level carries something no other level does:six==1.17.0parent_level.pyiniconfig==2.0.0direct/direct_level.pytomli==2.2.1direct/nested/nested_level.pySo a level's marker in the result proves that level was scanned, and its absence proves it wasn't. It was verified live from github.com: a depth-1 clone gives
sixforfalse, addsiniconfigfortrue, and addstomliforrecursive.The assertion
Neither lane reports what it analysed, and neither scan action does, so
tests/scan_contents.pyasks the server afterwards. It reads the newest build-stage Nexus IQ report, or the latest Sonar analysis's indexed files.Each lane scans twice. With
recursive, all three levels must appear. Withtrue, the direct level must appear and the nested one must not. That negative control proves the check can fail. It also catches a lane that ignores the input and always recurses, which a presence-only check would pass.Attributing each result to its own scan
Reading the right result matters as much as reading it. Each lane's chain runs:
baseline, before the first scan, records the identity of the newest result the server already holds: the report's scan-specificreportDataUrl, or the Sonar analysiskey.assertaccepts only a result with a different identity that is strictly newer by the server's own clock, then emits it as the next leg's baseline.The runner's clock is never consulted. An earlier draft compared a runner timestamp with the server's, which a Copilot review correctly caught: the stamp was truncated to whole seconds, and the comparison was across two clocks. Identity settles the same-second case, and comparing the server with itself removes clock skew.
testing.yamlnow also runs one at a time across all refs, and never cancels mid-flight. Every credentialled leg, old and new, scans into a server-side project shared by every run, so two dispatches from different branches could each read the other's result. Cancelling offers no protection either, since a cancelled scan can still finish processing on the server.All four scan legs pin one resolved fixture commit, following the Go legs' existing pattern, so a push to the fixture mid-run can't leave the two checkout modes on different trees.
Both Sonar scans are pinned to branch
mainand to projectlfreleng-actions_test-python-submodules, and every Sonar query names both. The lane'ssonar_project_keyandsonar_organizationare documented overrides of the fixture'ssonar-project.properties, so the scan and its assertion name one project whatever that file says. Without a name, the scanner's GitHub Actions auto-configuration analyses under the ref that dispatched the run, so a run from a branch under review would land where the assertion never reads, and a correct scan would then be rejected as stale. Copilot caught this in round 2. I confirmed the mechanism in the scan action (it setssonar.branch.nameonly when the input is non-empty) and that both endpoints honourbranch=:mainreturns 200 and a missing branch 404.Verified against both servers, read-only
Response shapes were checked against live data, not the docs. That surfaced three things worth knowing:
test-python-project's. SonarCloud names auto-created projects<org>_<repo>:test-python-projectreturns 404 andlfreleng-actions_test-python-projectreturns 200. I'd copied the stale convention into the new fixture; Fix: Name the Sonar project SonarCloud creates test-python-submodules#1 fixes it.buildstage is right. The pinned scan action sets no stage, so I readrun-iq-cli's default at the exact pinned commit:stage default=build.testing.yamlhas run six times ever, all on 28 July, before it became dispatch-only. The Go and Python fixture applications hold zero Nexus IQ reports, and the Maven and Node applications don't exist. That's pre-existing, but these legs inherit it: they prove nothing until someone dispatches the workflow.The decisive live check was asserting straight after a baseline, with no new scan in between. It fails on both servers with "still the one the server held before this scan".
Tested offline on every PR
testing.yamlneeds credentials and runs only on dispatch, so the assertion logic itself is covered by 25 offline cases. They stub both servers in the shapes captured live, and run on every PR throughtests/workflow-steps.sh. Each rejection must name its cause.Verified to catch regressions, since each mutant fails the case written for it:
the report held before the scan is refused, and the Sonar equivalent>relaxed to>=(the same-second bug)a new report in the same second as the baseline is refused, on both serversa lane ignoring the input and always recursing failsa report at a stage other than build does not countstrategy=alldropped from the tree querybranch=dropped from both Sonar queriesThe script is fully typed with no suppressions (ruff, mypy and basedpyright all clean). It uses
http.clientagainst a fixed HTTPS host, so a crafted URL can't steer it to another scheme.One design change forced by zizmor
Inline jobs reading secrets directly drew four
secrets-outside-envfindings against a baseline of 0. Rather than allow-list them, I moved the checks into a small internal reusable workflow,assert-submodule-scan.yaml. Its credentials arrive as declaredworkflow_callsecrets that the caller hands over explicitly, exactly as every lane receives them. zizmor is back to 0.That needed one line in
.github/actionlint.yaml, following that file's documented convention of one named entry per$/call target. A positive control confirms it excuses only the correct spelling: a misspelled call still fails actionlint.Before this can pass
When
testing.yamlis next dispatched, these legs need two things provisioned on the servers. Creating them is an administrative action this PR can't and shouldn't take; the first dispatch fails loudly, naming the missing one, until they exist:lfreleng-actions_test-python-submoduleslfreleng-actions-test-python-submodules. The baseline copes with it missing, but the assertion needs it to exist once scanned.One open question I couldn't settle from here: locally, the IQ username returns 401 and only the user code authenticates. CI's
vars.NEXUS_IQ_USERNAMEmatches neither local identity, so it's likely a separate service account, and only a dispatch will show whether it works.Validation
prek run --all-files— all hooks passzizmor --persona auditor— 0 findingstests/workflow-steps.sh— 70/70 (its scan-contents case runs all 25 offline cases), plus the seven mutations aboveaislop ci --changes --base upstream/main— score 100, 0 errors, 0 warningsgitlint— clean; commit signed with DCO sign-offneeds.*.outputsreference is backed by a matchingneeds