Skip to content

fix(harness): parse the actionlint fork's version line - #1027

Merged
kyle-sexton merged 1 commit into
mainfrom
fix/actionlint-fork-version-parse
Nov 15, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
fix/actionlint-fork-version-parse

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #982

Summary

The re-pin pull request #982 (ci-workflows actions to v0.74.0) has failed CI Status since the actionlint action
switched to the kjanat fork: two component suites cannot parse the fork's version line, so this repository's 23
first-party action pins have stayed on v0.71.0.

Fix

  • components/actionlint/actionlint.test.sh and components/claude-lanes/claude-lanes.test.sh: the version handed
    to require_min_version is the last field of the first line of actionlint -version. Upstream prints 1.7.12;
    the fork prints actionlint.kjanat.dev 1.17.0.

Neither file is distributed, so the sync opens no pull request for this change.

Verification

  • Failing job on chore(claude-lanes): re-pin ci-workflows actions to v0.74.0 #982 (Check GitHub Actions, head a7efa88):
    ERROR: actionlint reported an unparsable version: actionlint.kjanat.dev\ 1.17.0 (fix the --version parse) in both
    suites.
  • printf 'actionlint.kjanat.dev 1.17.0\n' | awk 'NR == 1 { print $NF }' prints 1.17.0.
  • bash harness/shell/run-tests.sh components/claude-lanes/claude-lanes.test.sh components/actionlint/actionlint.test.sh
    with upstream actionlint 1.7.12: 2 files: 2 passed, 0 failed, 0 skipped.

Related

🤖 Generated with Claude Code

The kjanat fork that ci-workflows v0.74.0 installs prints
`actionlint.kjanat.dev 1.17.0` where upstream prints `1.7.12`, so the
two suites that gate on the actionlint version failed their parse. Both
now take the last field of the first line, which is the version in
either build.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T22:55:28.834478Z fd8da51 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown

claude-security-review reviewed fd8da51dd425b5e013af16dcdc3cb930a49b41d1: 0 finding(s), 0 as inline comments.

No security findings.

The change touches two test scripts, components/actionlint/actionlint.test.sh and components/claude-lanes/claude-lanes.test.sh. In each, the actionlint -version line passed to require_min_version is now parsed with awk 'NR == 1 { print $NF }' instead of head -n 1. The input is the local actionlint binary's own version output, and the value is only compared against a minimum version. No untrusted input reaches it, and nothing in the diff touches a token, a secret, a trust control, a merge hold, a manifest, or an instruction surface. I skipped the deep review because the diff has no security-relevant surface.

critical-findings: 0

@github-actions

Copy link
Copy Markdown

claude-review reviewed fd8da51dd425b5e013af16dcdc3cb930a49b41d1: 0 finding(s), 0 as inline comments.

No findings. The PR changes one line in each of components/actionlint/actionlint.test.sh:17 and components/claude-lanes/claude-lanes.test.sh:24. Both now take the last field of the first line of actionlint -version, so the fork's actionlint.kjanat.dev 1.17.0 and upstream's bare 1.7.12 both parse to a plain version. I read the diff and grepped the repository, and I did not run the test suites or any actionlint binary. The PR's verification claims (the awk output and the 2 passed run) are author-claimed and unverified by me.

  • Other call sites: the grep found no other actionlint -version or --version call in the repository, so no instance of the same parse bug is left.
  • Version floor: the fork's version number is compared against the 1.7.4 floor. That is only meaningful if the fork's numbering tracks upstream's, and nothing in this diff can confirm it. It is not a defect in this change.
  • Closing issue: the PR uses Refs: #982 and closes nothing, so there are no acceptance criteria to check.
  • Plugin manifests: none changed.
  • Path-scoped rules: the .claude/rules/pr-body-contract.md rule in the instructions covers the PR title and body, and the body follows it. I did not read the rules directory for a paths: glob that matches the changed files.

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton merged commit c5b328e into main Nov 15, 2026
22 checks passed
@kyle-sexton
kyle-sexton deleted the fix/actionlint-fork-version-parse branch November 15, 2026 22:58
kyle-sexton added a commit that referenced this pull request Nov 15, 2026
…nly (#1028)

Refs: #982

## Summary

With the version parse fixed (#1027), the re-pin pull request #982 still
fails `CI Status`: nine assertions in
`components/actionlint/actionlint.test.sh` are removal controls that
expect actionlint to reject `$/` references,
`concurrency.queue`, job `cache-mode` and the `issues`
`field_added`/`field_removed` types without the config. The
kjanat fork that ci-workflows v0.74.0 installs accepts all four
natively.

## Fix

- `components/actionlint/actionlint.test.sh`: those four controls run
only when the engine is upstream actionlint.
  The fleet-label control is unchanged and runs on both engines.

The four ignores in `.github/actionlint.yaml` stay. A consumer that
still lints with upstream actionlint needs them:
claude-code-plugins pins the actionlint action at `2476d5dd`, before the
switch to the fork (ci-workflows `d7d8b1f`,
first released in v0.72.0), and uses these constructs in its workflows.
Dropping an ignore and its control is right
once no consumer lints with upstream.

## Verification

- Failing job on #982 at head `544ed7c6` (`Check GitHub Actions`):
assertions 16, 17, 23, 24, 30, 31, 38, 39 and 40,
  each "expected non-zero exit, got 0" or its missing control message.
- Upstream actionlint 1.7.12: `bash
components/actionlint/actionlint.test.sh` prints 40 `PASS`, 0 `FAIL`.
- A stub that reports the fork's version line and otherwise runs
upstream: 31 `PASS`, 0 `FAIL` (the nine assertions
above do not run; the fleet-label control does). The real fork runs this
suite on #982's next run.
- `shellcheck components/actionlint/actionlint.test.sh`: clean.

## Related

- #982, #1027
- melodic-software/ci-workflows#1027 (the switch to the fork)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Fable 5.2 <[email protected]>
kyle-sexton added a commit that referenced this pull request Nov 16, 2026
)

No related issue: the first-party action pin work, tracked in the
owner's audit session.

## Summary

The daily re-pin pull request that moves this repository's
`melodic-software/ci-workflows` action pins waited for a
person to merge it. #982 (to v0.74.0) sat open and red from 2026-11-09
to 2026-11-16 with nobody watching it, so
standards and the distributed managed-files-guard callers stayed on
v0.71.0. After this change the pull request arms
auto-merge and merges once `CI Status` passes.

## Fix

- `.github/workflows/maintenance-repin-ci-workflows.yml`: a last step
runs `gh pr merge --auto --squash` on the
pull request the job opened or updated, with the same App token. Arming
never merges: GitHub merges once every
required check passes. The header, the step comment and the pull-request
body text no longer say it is merged by a
  person.
- `components/runner-policy/THREAT-MODEL.md` and
`components/managed-files-guard/README.md`: the same wording.

Owner decision: asked in the audit session on 2026-11-15 "May standards'
own repin pull request merge itself once
`CI Status` passes?", with the threat-model line quoted as the reason
for asking; the owner answered "go with
recommendations", the recommendation being yes. The sync pull requests
this one cascades into already arm
auto-merge by default (`distribution/README.md`, `automerge`).

What is unchanged: the required check, the review lanes (both ran on
#982), the App's permissions (it already holds
contents and pull-requests write, which arming needs), and the rule that
the job never moves a reusable-workflow ref.

## Verification

- `actionlint .github/workflows/maintenance-repin-ci-workflows.yml`:
exit 0.
- `zizmor --offline` on the same file: no findings.
- Not exercised before merge: the job runs on schedule and dispatch from
main only, so the new step first runs at
the next ci-workflows release after this merges. Until then the claim
that it arms is unproven.

## Related

- #982, #1027, #1028

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Fable 5.2 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant