Skip to content

CI(actions): Bump harden-runner-block-action - #163

Merged
ModeSevenIndustrialSolutions merged 1 commit into
lfreleng-actions:mainfrom
lfreleng-bot-forks:code-monkey/issue-162
Oct 20, 2026
Merged

ModeSevenIndustrialSolutions merged 1 commit into
lfreleng-actions:mainfrom
lfreleng-bot-forks:code-monkey/issue-162

Conversation

@lf-releng-code-monkey-bot

Copy link
Copy Markdown
Contributor

Closes #162

Authored by an AI agent; human review required
Command Exit
git ls-remote https://github.com/lfreleng-actions/harden-runner-block-action 'refs/tags/v0.14.0*' 0
bash tests/workflow-steps.sh 0
prek run --files .github/workflows/action-pin-audit.yaml .github/workflows/codeql.yaml .github/workflows/openssf-scorecard.yaml .github/workflows/package-hardening-audit.yaml .github/workflows/release 0
aislop scan --changes --json 0
git commit -s (pre-commit and commit-msg hooks, incl. gitlint) 0

The github-code-monkey-bot workflow 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.


Summary

Bumps every lfreleng-actions/harden-runner-block-action pin in the reusable workflows from v0.13.1 to v0.14.0 (nine references across eight workflow files).

Why

Block-mode jobs failed intermittently on their first network request. harden-runner's pre hook stopped waiting for its agent after 9 s while the agent was still resolving the allow-list and switching DNS and the firewall over, so the next step raced that switch-over. v0.14.0 (lfreleng-actions/harden-runner-block-action#90) makes the main step wait for the agent to report ready (agent_timeout, default 120 s) and fail the job if the agent errors (agent_not_ready, default error). Both inputs have defaults, so callers need no changes. Dependabot's 7-day cooldown would delay this bump, so it is raised by hand.

Change

  • Each line keeps its indentation, uses: / - uses: form and comment spacing; only the SHA and version comment change.
  • The pin is e5e8179f45aa893b23cc8b5d2e25466355d9c4f8, the commit the tag points to. git ls-remote shows refs/tags/v0.14.0 = a2a57adb… (annotated tag object) and refs/tags/v0.14.0^{} = e5e8179f… (commit), so this is the resolvable commit SHA.
  • No with: inputs, other pins or allow-list defaults change.

Checks run

Command Result
git ls-remote https://github.com/lfreleng-actions/harden-runner-block-action 'refs/tags/v0.14.0*' 0, commit SHA confirmed
git grep -n 'harden-runner-block-action@' 9 lines, all @​e5e8179f… # v0.14.0
git grep -n 51ef68401547a8b648275129b9a21544612596d5 no matches
bash tests/workflow-steps.sh 0, all 112 cases passed
prek run --files <8 changed workflows> 0 (yamllint, actionlint, zizmor, codespell, reuse and workflow validators passed)
commit hooks incl. gitlint passed
aislop scan --changes --json 0, empty diagnostics

For reviewers

  • I ran prek on the changed files rather than --all-files (the org guidance says auto-fixers would otherwise touch unrelated files); every hook relevant to these files passed.
  • The organisation's scripts/agents/aislop-gate.sh is not in this repository, so I ran aislop scan --changes directly against the uncommitted diff before committing.
  • v0.14.0 can now fail a job outright when the agent does not become ready (agent_not_ready: error), where v0.13.1 continued silently. That is the intended behaviour from the upstream release, not a change made here.

Move all nine harden-runner-block-action pins from v0.13.1 to the
v0.14.0 commit (e5e8179f, the peeled tag, not the tag object).

Block-mode jobs failed intermittently on their first network request:
harden-runner's pre hook gave up waiting for its agent after 9 s while
the agent was still resolving the allow-list and switching DNS and the
firewall, so the next step raced that switch-over. v0.14.0 makes the
main step wait for the agent to report ready and fail the job if the
agent errors. Its new inputs have defaults, so no caller changes.

Dependabot's cooldown would delay this bump, so it is raised by hand.

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>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The release introduces stricter security-agent failure handling across workflows, warranting maintainer review despite no identified blocking code issues.

No open issues 🎉

What changed in this PR

Updates runner hardening to v0.14.0 across reusable workflows to address the startup network race described in #162.

Changes:

  • Updates nine pinned references across eight workflows.
  • Preserves existing inputs, allow-list settings, and formatting.
File Description
.github/​workflows/​zizmor.yaml Updates both hardening pins.
.github/​workflows/​sonatype-lifecycle.yaml Updates the hardening pin.
.github/​workflows/​sonarqube-cloud.yaml Updates the hardening pin.
.github/​workflows/​release-drafter.yaml Updates the hardening pin.
.github/​workflows/​package-hardening-audit.yaml Updates the hardening pin.
.github/​workflows/​openssf-scorecard.yaml Updates the summary-job hardening pin.
.github/​workflows/​codeql.yaml Updates the hardening pin.
.github/​workflows/​action-pin-audit.yaml Updates the hardening pin.

Review effort: Balanced

@ModeSevenIndustrialSolutions
ModeSevenIndustrialSolutions merged commit ef6c0d9 into lfreleng-actions:main Oct 20, 2026
12 checks passed
@ModeSevenIndustrialSolutions
ModeSevenIndustrialSolutions deleted the code-monkey/issue-162 branch October 20, 2026 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI CI and tests updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: Bump harden-runner-block-action to v0.14.0

2 participants