Repository navigation
Conversation
testing.yaml has never started in its current form. Its first dispatch ended in startup_failure: Error calling workflow '.../zizmor.yaml@40b00cb...'. The nested job 'upload' is requesting 'actions: read, security-events: write', but is only allowed 'actions: none, security-events: none'. GitHub compares a called workflow's job permissions with the calling job's grant when it loads the run, before any 'if:' is evaluated, and refuses the whole run on a shortfall. Four legs granted less than their lane declares: zizmor-self and zizmor-fixture (the skipped upload job), openssf-scorecard-dry-run (the scan job's publishing scopes) and codeql-matrix (the analyze job). Grant each what its lane declares. Publishing, SARIF upload and alert upload stay off in all four, so the new scopes go unused. Nothing runs testing.yaml per PR, so add a check to the per-PR harness that every leg grants each scope its lane's jobs declare. It fails on exactly these four legs against the previous file. Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
Four Sonar legs left sonar_organization and sonar_project_key unset, so the project they analysed into was resolved by the scan action: - the Maven legs took 'test-maven-project' from the fixture's own sonar-project.properties, not the key SonarCloud gives a project in this organisation; - the Go and scan-only legs, whose fixtures have no properties file, fell back to owner and name from GITHUB_REPOSITORY. That is this repository, not the fixture, so both would analyse into one project named 'security-workflows'. None of those projects exists. Name each leg's project explicitly as 'lfreleng-actions_<fixture>', the key SonarCloud's GitHub import assigns and the one the submodule legs already use, and add a harness check that every Sonar leg sets both inputs. The four projects still need creating in SonarCloud before these legs can pass. Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
ModeSevenIndustrialSolutions
requested review from
a team
and
a balanced review from Copilot
October 7, 2026 23:30
There was a problem hiding this comment.
🟢 Approval recommended
The changes address both defects and the 112-case regression harness passes.
0 open findings
What changed in this PR
Fixes startup validation and Sonar project targeting in the credentialled self-test.
Changes:
- Grants reusable workflows their required permissions.
- Configures explicit SonarCloud projects and adds regression checks.
| File | Description |
|---|---|
.github/workflows/testing.yaml |
Adds required permissions and Sonar project identifiers. |
tests/workflow-steps.sh |
Validates permissions and Sonar configuration. |
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
askb
approved these changes
Oct 8, 2026
5 tasks
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
testing.yamlhas never started in its current form. Its first dispatch onmain(run 37701570063) ended instartup_failurewith no jobs:This PR fixes that and a second defect a dispatch would have hit next. Each commit adds a per-PR harness check that fails against the file before it.
Commits
Fix(testing): Grant legs their lanes' permissions. When GitHub loads a run, it compares each called workflow's job permissions with the calling job's grant, before any
if:is evaluated, and refuses the whole run on a shortfall. GitHub reports only the first. A static audit of every leg found four short:zizmor-self,zizmor-fixtureupload(skipped on dispatch)security-events: write,actions: readopenssf-scorecard-dry-runscansecurity-events: write,id-token: write,actions: readcodeql-matrixanalyzesecurity-events: write,actions: readPublishing, SARIF upload and alert upload stay off in all four legs, so the added scopes go unused. A new harness section checks every leg's grant against its lane, with a leg lacking its own block falling back to the workflow-level one.
Fix(testing): Name each Sonar leg's project. Four Sonar legs left
sonar_organization/sonar_project_keyunset. The Maven legs tooktest-maven-projectfrom the fixture's properties file. The Go and scan-only fixtures have no properties file, so the scan action derived owner and name fromGITHUB_REPOSITORY, which is this repository, and both would have analysed into one project calledsecurity-workflows. None of those projects exists. Each leg now nameslfreleng-actions_<fixture>, the key SonarCloud's GitHub import assigns and the one the submodule legs already use.Server-side prerequisites
lfreleng-actions-test-maven-project,-test-node-projectand-test-python-submodulesin thelfreleng-actionsorganisation, beside the existing Go and Python fixture applications. The CLI scan passes no organisation, so it can't create a missing application itself.lfreleng-actions_test-maven-project,lfreleng-actions_test-go-project,lfreleng-actions_test-node-projectandlfreleng-actions_test-python-submodules. None exists yet, and they need someone with Create Projects permission in the SonarCloud organisation. Until they exist, the Sonar legs fail on a missing project; the rest of the run is unaffected.Validation
tests/workflow-steps.sh: 112 cases pass, up from 83. Mutation: againstmain'stesting.yamlthe permission check fails on exactly the four legs above, and the naming check on exactly the four unnamed legs.prekon the changed files,zizmor --persona=auditor(online): no findings, aislop gate: clean.testing.yamlitself runs only on dispatch, and only an upstream dispatch carries the credentials, so the end-to-end proof is a dispatch onmainafter merge.