Repository navigation
Feat: Expose all harden-runner allow-list inputs - #187
Merged
ModeSevenIndustrialSolutions merged 4 commits intoNov 2, 2026
Merged
ModeSevenIndustrialSolutions merged 4 commits into
ModeSevenIndustrialSolutions merged 4 commits into
Conversation
Give every reusable workflow that loads its egress allow-list through harden-runner-block-action the three inputs it lacked: harden_runner_supplemental_allowlist, harden_runner_supplemental_unpinned and harden_runner_extra_endpoints. Pass each through, with harden_runner_allowlist, on every block-action step, in the form the other '*-workflows' repositories use. A caller can then merge its organisation's own supplemental list, follow that list unpinned when it lives in the caller's organisation, or add inline endpoints for a short-lived fix. Naming a supplemental list sets supplemental_required, so a missing list fails the job at load time rather than at the first blocked connection. The block-action pin is already v0.15.0 on main, so no pin moves here. The openssf-scorecard scan job keeps its fixed list; only its summary job loads the allow-list. Default egress policies and baseline allow-list pins are unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: lf-releng-code-monkey-bot[bot] <332050256+lf-releng-code-monkey-bot[bot]@users.noreply.github.com>
Add tests/test-harden-runner-inputs.sh, the check shared verbatim by every '*-workflows' repository. For each workflow_call workflow with a harden-runner-block-action step it fails when one of the five harden_runner_* inputs is missing, mistyped or carries the wrong default, when a block-action step omits a pass-through setting or passes one in another form, or when the action is not pinned at v0.15.0. It then mutates a copy of one clean workflow fifteen ways and expects each mutant to fail, so it cannot pass vacuously. The file is not executable; a local prek hook runs it through bash, with PyYAML supplied by 'language: python', whenever a workflow or the script changes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: lf-releng-code-monkey-bot[bot] <332050256+lf-releng-code-monkey-bot[bot]@users.noreply.github.com>
Pass the three new harden-runner inputs on the zizmor-self leg of testing.yaml, which calls zizmor.yaml in block mode, so a dispatched run loads a supplemental list unpinned and an inline endpoint through both of that lane's block-action steps. Neither grants anything new: 'lfreleng-actions//' is the calling organisation, so it may follow its default branch, and it resolves to the organisation list the baseline already loads; github.com:443 is already on that list, so the action reports it as redundant. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: lf-releng-code-monkey-bot[bot] <332050256+lf-releng-code-monkey-bot[bot]@users.noreply.github.com>
Add an Egress allow-list section to the README, linked from Usage, that describes the five harden_runner_* inputs once: an organisation following its own supplemental list unpinned, a cross-organisation list that must be pinned, the job failure a missing named list causes, inline endpoints as a short-term fix, and the supplemental_source and supplemental_sha outputs as the audit trail for an unpinned list. List all five inputs in docs/BRIEF.md's shared input vocabulary. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: lf-releng-code-monkey-bot[bot] <332050256+lf-releng-code-monkey-bot[bot]@users.noreply.github.com>
ModeSevenIndustrialSolutions
approved these changes
Nov 2, 2026
ModeSevenIndustrialSolutions
left a comment
Member
There was a problem hiding this comment.
🤖 Dependamerge
Approved this pull request ✅
ModeSevenIndustrialSolutions
merged commit Nov 2, 2026
00448bc
into
lfreleng-actions:main
12 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.
Closes #186
Authored by an AI agent; human review required
claude-opus-5.5via GitHub Copilot CLI77e25ba7f074c3062c4848ea1e2e519b29b96982bash tests/test-harden-runner-inputs.shbash tests/test-harden-runner-inputs.sh <scratch copy with codeql extra_endpoints removed>bash tests/test-harden-runner-inputs.sh <base zizmor.yaml>prek run --files .github/workflows/{action-pin-audit,codeql,openssf-scorecard,package-hardening-audit,sonarqube-cloud,sonatype-lifecycle,zizmor}.yamlprek run --files .pre-commit-config.yaml tests/test-harden-runner-inputs.sh .github/workflows/zizmor.yamlprek run --files .github/workflows/testing.yamlprek run --files README.md docs/BRIEF.mduvx zizmor@1.31.1 --persona auditor --offline .github/workflows/bash tests/workflow-steps.shbash tests/python-warning-steps.shaislop scan --base 77e25ba7f074c3062c4848ea1e2e519b29b96982 --json .git log --raw --format=%h 77e25ba7f074c3062c4848ea1e2e519b29b96982..HEADThe
github-code-monkey-botworkflow opened this pull request.Nobody has merged it; a maintainer must review it first.
Review findings on this pull request are answered by a later revision round of this workflow, up to ten rounds; a maintainer must act on any finding that remains after that, and reviews every round before merge.
Gives every reusable workflow that loads its egress allow-list through
lfreleng-actions/harden-runner-block-actionthe same fiveharden_runner_*inputs the other*-workflowsrepositories carry, and passes each one through on every block-action step. A caller can then merge its organisation's own supplemental list (for example ONAP'sregistry.nordix.org), follow that list unpinned when it lives in the caller's own organisation, or add inline endpoints for a short-lived fix.Commits
harden_runner_supplemental_allowlist,harden_runner_supplemental_unpinned(boolean) andharden_runner_extra_endpointsdirectly afterharden_runner_allowlistinaction-pin-audit,codeql,openssf-scorecard,package-hardening-audit,sonarqube-cloud,sonatype-lifecycleandzizmor. The descriptions are copied word for word from rust-workflows. Every block-action step (8 in total;zizmor.yamlhas two) now passessupplemental_config,supplemental_required,supplemental_unpinnedandextra_endpointsin the reference form. Existingallow_list_summarylines are unchanged.tests/test-harden-runner-inputs.shas a byte-for-byte copy of the generic-workflows script (blobd40caed1, verified withgit hash-object). It is a non-executable file, run by a newrepo: localprek hook throughbash.zizmor-selfleg oftesting.yaml, which callszizmor.yamlin block mode and goes through both of its block-action steps.testing.yamlruns onworkflow_dispatchonly, so this leg runs on dispatch, not on this pull request. The drift check is the check that runs on pull requests.README.md, linked from Usage, and lists all five inputs indocs/BRIEF.md's shared input vocabulary.Left unchanged
2fed66c9…) onmainafter Bump action pins to latest releases for harden-runner v2.22.3 #184/Chore: Bump action pins for harden-runner v2.22.3 #185, so nouses:line changes.allow_list_summaryvalues do not change. The workflow diff contains additions only (240 insertions, 0 deletions).openssf-scorecard.yamlscanjob keeps its fixed list.assert-submodule-scan.yaml,release-drafter.yaml,clear-action-cache.yaml,release.yaml,openssf-scorecard-self.yamlandworkflow-tests.yamlare untouched.Validation
bash tests/test-harden-runner-inputs.shreports7 workflow(s) expose and pass every input ✅andMutants of action-pin-audit.yaml caught: 15/15.extra_endpointsfromcodeql.yaml's block-action step, and ran the check on the copy. It exits 1 withjobs.analyze.steps[0] does not pass extra_endpointsand1 problem(s) across 7 workflow(s) ❌. Run onzizmor.yamlas it is on the base commit, the check reports 11 problems and exits 1.prek run --files <changed files>passes for every commit. That includes yamllint, actionlint, zizmor, check-jsonschema, gha-workflow-linter, markdownlint, write-good, reuse, shellcheck and the new drift-check hook.zizmor --persona auditor --offline .github/workflows/(v1.31.1) reports no findings.bash tests/workflow-steps.sh(112 cases) andbash tests/python-warning-steps.sh(36 cases) pass.aislop scan --base <base>returns an emptydiagnosticsarray.Points a reviewer may question
with:values onzizmor-selfgrant nothing new.lfreleng-actions//is the calling organisation, so it may stay unpinned, and it resolves to the organisation list the baseline already loads.github.com:443is already on that list. I could not run the dispatched leg here.'other-org//<path>@<commit-sha>'and not a real coordinate. It points to the block-action README for the grammar and does not restate it..gitlinttitle-max-length, so subjects are kept to 50 characters.