Repository navigation
feat(gha-lint): remove the workflow-template-dir input and pin every tool version - #16
Conversation
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]>
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Review summary I found no blocking issues and posted no inline comments.
Not verified (no network access in the review sandbox):
The CI run on this PR should confirm both. |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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]>
|
@codex review |
Review summaryNo blocking findings. What I checked:
Not blocking: the PR description still says actionlint is pinned to |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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]>
|
@codex review |
|
Review summary (read-only) I found no blocking problems (0 P0/P1) and am not posting any inline comments. What I checked:
No network access in this sandbox, so I could not check: the nixpkgs rev's actionlint wrapper (shellcheck/pyflakes), the |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
概要
CI で使うツールを版レベルですべて固定し,使われていない
workflow-template-dir入力を削除します.変更内容
破壊的変更
gha-lint.ymlのworkflow-template-dir入力と,それ専用の 3 ステップ(template 用の actionlint,Stage,template 用の zizmor)を削除しました.呼び出し側で使っている repo はありません.入力の削除は互換性を壊すため,release-please は v2.0.0 を切ります.版の固定
raven-actions/actionlintが release asset を checksum 検証なしでダウンロードする(asset は差し替えられる)ため,nixpkgs の固定 rev からnix runで実行する形に変えました(gha-lint.yml).nixpkgs の actionlint は shellcheck と pyflakes を同梱しています.raven-actions/actionlintと actionlint の Renovate customManager は削除しました.1.32.0に固定(gha-lint.yml).固定済みのzizmor-actionの SHA に hash 付きの lockfile があるため,この版で中身まで固定されます.nix-lint.ymlの nixfmt・statix・deadnix とgha-lint.ymlの actionlint を,nixpkgs の同一 rev(各ファイルの job envNIXPKGS_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 が更新するようにしました.install-nix-actionv31.11.3 → Nix 2.35.4)と Claude CLI(claude-code-actionv1.0.268 → Claude CLI 2.1.318)は,固定済みの action SHA に版が埋め込まれているため,既に exact に固定されています.install_urlなどを足すと action の版と二重管理になるので,追加していません.action の更新で一緒に上がります.all-systems入力の取り消しについてcommit
7b89507のメッセージはnix-check.ymlへのall-systems入力の追加を謳っていますが,最後の commitc9de33eで取り消しています(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,設定ファイルなし)がエラーなしで通ることを確認.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