Skip to content

feat(gha-lint): remove the workflow-template-dir input and pin every tool version - #16

Merged
furedea merged 5 commits into
mainfrom
feat/nix-check-opt-out-and-pins
Nov 8, 2026
Merged

furedea merged 5 commits into
mainfrom
feat/nix-check-opt-out-and-pins

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

概要

CI で使うツールを版レベルですべて固定し,使われていない workflow-template-dir 入力を削除します.

変更内容

破壊的変更

  • gha-lint.yml の workflow-template-dir 入力と,それ専用の 3 ステップ(template 用の actionlint,Stage,template 用の zizmor)を削除しました.呼び出し側で使っている repo はありません.入力の削除は互換性を壊すため,release-please は v2.0.0 を切ります.

版の固定

  • 版の文字列ではなく,中身が変わらない形で固定しました.
  • actionlint は,raven-actions/actionlint が release asset を checksum 検証なしでダウンロードする(asset は差し替えられる)ため,nixpkgs の固定 rev から nix run で実行する形に変えました(gha-lint.yml).nixpkgs の actionlint は shellcheck と pyflakes を同梱しています.raven-actions/actionlint と actionlint の Renovate customManager は削除しました.
  • zizmor は 1.32.0 に固定(gha-lint.yml).固定済みの zizmor-action の SHA に hash 付きの lockfile があるため,この版で中身まで固定されます.
  • nix-lint.yml の nixfmt・statix・deadnix と gha-lint.yml の actionlint を,nixpkgs の同一 rev(各ファイルの job env NIXPKGS_REV)に固定.
  • 全ワークフローの runs-on: ubuntu-latest を ubuntu-24.04 に固定.GitHub は新しい 2 つの LTS を提供する方針で,ubuntu-latest の移行告知でも 24.04 への固定が案内されています.
  • ubuntu-26.04 にしなかった理由:固定した actionlint 1.7.12(nixpkgs の rev が提供する版)は ubuntu-26.04 を組み込みラベルに持ちません(v1.7.12 の rule_runner_label.go で確認).一方 ubuntu-24.04 は組み込みラベルなので,設定ファイルは不要です.26.04 への移行は chore(gha-lint): watch actionlint upstream and decide on a successor #17 で扱います.
  • renovate.json に customManagers を追加し,zizmor(github-releases)と nixpkgs(git-refs,nixos-unstable,nix-lint.yml と gha-lint.yml の 2 ファイルを 1 本の PR で更新)を Renovate が更新するようにしました.
  • Nix 本体(install-nix-action v31.11.3 → Nix 2.35.4)と Claude CLI(claude-code-action v1.0.268 → Claude CLI 2.1.318)は,固定済みの action SHA に版が埋め込まれているため,既に exact に固定されています.install_url などを足すと action の版と二重管理になるので,追加していません.action の更新で一緒に上がります.
  • README に入力と固定の一覧を反映しました.

all-systems 入力の取り消しについて

commit 7b89507 のメッセージは nix-check.yml への all-systems 入力の追加を謳っていますが,最後の commit c9de33e で取り消しています(force push はしていません).nix flake check -L → nix flake check --all-systems --no-build の 2 段は,無条件に実行する元の動作のままです.この PR の最終状態に all-systems 入力はありません.

IFD(import-from-derivation)を使う flake は,--no-build で外部 system の出力を評価できず失敗します(furedea/agent-harness#195,furedea/dotfiles#405).対応は opt-out を設けるのではなく,flake 側で IFD をなくす方針です.追跡は furedea/agent-harness#196 です.

確認

  • ローカルで actionlint(1.7.12,設定ファイルなし)がエラーなしで通ることを確認.
  • CI(all-green)と claude-review / codex-review の結果は,この PR で確認します.

Refs: furedea/agent-harness#195, furedea/agent-harness#196, furedea/dotfiles#405

🤖 Generated with Claude Code

BEGIN_COMMIT_OVERRIDE
feat(gha-lint): remove the workflow-template-dir input and pin every tool version
END_COMMIT_OVERRIDE

furedea and others added 3 commits November 9, 2026 00:02
Add the all-systems input to nix-check.yml (default true). Flakes that use
import-from-derivation cannot evaluate foreign-system outputs with
--no-build on a Linux runner, so they can now skip that step.

Replace every floating tool version with an exact pin:
- zizmor 1.32.0 and actionlint 1.7.12 in gha-lint.yml
- one nixpkgs revision (NIXPKGS_REV) for nixfmt, statix and deadnix
- runs-on: ubuntu-26.04 instead of ubuntu-latest in every workflow

Add Renovate customManagers for the zizmor, actionlint and nixpkgs pins,
allow the ubuntu-26.04 label in actionlint.yaml, and document the input.

Refs: furedea/agent-harness#195, furedea/dotfiles#405

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
install-nix-action v31.11.3 installs Nix 2.35.4 and claude-code-action
v1.0.268 installs Claude CLI 2.1.318, both hardcoded in the pinned SHA.
Neither is given an extra version input, so the pin cannot drift from the
action's own; Renovate moves them with the action.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ystems opt-out

Remove the workflow-template-dir input of gha-lint.yml together with the
actionlint, staging and zizmor steps that only ran for it. No caller uses
it.

Revert the all-systems input that 7b89507 added to nix-check.yml: both
nix flake check steps run unconditionally again. Flakes that use
import-from-derivation are to drop it instead of opting out of the
evaluation of every system.

The README no longer describes either input. The version pins, the
Renovate customManagers and the pin list stay as they are.

BREAKING CHANGE: gha-lint.yml no longer accepts the workflow-template-dir
input; a caller that passes it fails with an undefined input error.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@furedea

furedea commented Nov 8, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 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-08T16:05:57.764725Z ee77dd4 Manual request
ℹ️ 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

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown

Review summary

I found no blocking issues and posted no inline comments.

  • gha-lint.yml: Removing workflow-template-dir together with its three steps is complete. Nothing else in the repo still refers to the input, and the README now matches.
  • nix-lint.yml: Pinning nixfmt, statix and deadnix through one NIXPKGS_REV and a github:NixOS/nixpkgs/$REV#pkg flake reference is quoted correctly in the shell.
  • renovate.json: The first regex manager matches the # renovate: depName=… comment followed by the indented version: line. extractVersionTemplate strips the v from the release tags, which fits the unprefixed 1.7.12 / 1.32.0 values. The git-refs manager uses currentDigest plus currentValueTemplate: nixos-unstable, which is the documented way to track a branch head by digest.
  • .github/actionlint.yaml: It only affects linting of this repo. Callers that switch their own jobs to ubuntu-26.04 will need the same file until actionlint knows the label. That's worth knowing, but it isn't a defect in this PR.

Not verified (no network access in the review sandbox):

The CI run on this PR should confirm both.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: c9de33eaa4

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

raven-actions/actionlint downloads a release asset by tag without
verifying a checksum, and a release asset can be replaced, so the
version string did not fix the content. Install Nix with the same SHA as
nix-lint and run actionlint from the pinned nixpkgs revision with
nix run. Its inputs are fixed by hash, and the nixpkgs actionlint bundles
shellcheck and pyflakes.

NIXPKGS_REV has the same value as in nix-lint.yml, and the Renovate
nixpkgs customManager now updates both files. Drop the actionlint
customManager. zizmor stays at 1.32.0 because the pinned zizmor-action
SHA carries a lockfile with hashes.

.github/actionlint.yaml stays: actionlint 1.7.12, which this nixpkgs
revision provides, does not list ubuntu-26.04 as a runner label.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@furedea

furedea commented Nov 8, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown

Review summary

No blocking findings.

What I checked:

  • Removing workflow-template-dir (gha-lint.yml): nothing in this repo still passes the input, and ci.yml calls gha-lint without with:. The PR is marked as a breaking change (!), so release-please will cut a major version.
  • actionlint via nix run github:NixOS/nixpkgs/$NIXPKGS_REV#actionlint: the nixpkgs actionlint package wraps the binary so shellcheck and pyflakes are on PATH, so those checks still run. Run from the repo root, it finds .github/workflows and .github/actionlint.yaml on its own. install-nix-action passes github.token by default, so fetching the github: flake avoids the anonymous API rate limit.
  • nixfmt, statix, deadnix (nix-lint.yml): they now use the same pinned revision.
  • zizmor-action version: 1.32.0: the Renovate regex # renovate: depName=…\n\s+version: … matches the YAML as written, and extractVersionTemplate strips the v from the release tag.
  • nixpkgs git-refs manager: it uses currentDigest with currentValue = nixos-unstable. Both files get the same depName, so the updates share one branch and one PR.
  • runs-on: ubuntu-26.04 and the self-hosted-runner label allowance: the allowance is limited to this repo's own lint.

Not blocking: the PR description still says actionlint is pinned to 1.7.12 and updated through github-releases, but the code now pins it through the nixpkgs revision. The comment in .github/actionlint.yaml also names 1.7.12. It may help to update both so it is clear which actionlint version decides when that file can be removed.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 9b23a09af3

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Use ubuntu-24.04 instead of ubuntu-26.04 in every workflow. actionlint
1.7.12 knows ubuntu-24.04, so .github/actionlint.yaml, which only allowed
the ubuntu-26.04 label, is removed. GitHub provides the two newest Ubuntu
LTS releases, and its ubuntu-latest migration notice advises pinning
24.04.

Refs: #17

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@furedea

furedea commented Nov 8, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown

Review summary (read-only)

I found no blocking problems (0 P0/P1) and am not posting any inline comments.

What I checked:

  • gha-lint.yml: removing workflow-template-dir breaks callers that pass it. The PR says this on purpose (! / v2.0.0), and nothing in this repo uses the input. actionlint now runs with nix run from a fixed nixpkgs rev. It lints .github/workflows from the checkout root and gets the same contents: read permissions as before.
  • nix-lint.yml: nixfmt, statix and deadnix use the same NIXPKGS_REV as gha-lint.yml. Both env values match.
  • renovate.json: the zizmor regex matches the # renovate: depName=… / version: pair, and extractVersionTemplate strips the v tag prefix. The nixpkgs git-refs manager uses currentDigest with currentValue=nixos-unstable, so both files update together in one PR.
  • runs-on: ubuntu-24.04 is applied in every workflow, and actionlint 1.7.12 knows the label.

No network access in this sandbox, so I could not check: the nixpkgs rev's actionlint wrapper (shellcheck/pyflakes), the version input of zizmor-action at the pinned SHA, and the all-green CI result.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: ee77dd41f1

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@furedea
furedea merged commit ecff542 into main Nov 8, 2026
13 checks passed
@furedea
furedea deleted the feat/nix-check-opt-out-and-pins branch November 8, 2026 16:07
@furedea furedea changed the title feat(gha-lint)!: remove the workflow-template-dir input and pin every tool version feat(gha-lint): remove the workflow-template-dir input and pin every tool version Nov 8, 2026
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