Repository navigation
ci: pinact を外して GitHub Actions の workflow lockfile に移行する - #104
Merged
Merged
Conversation
Workflows go back to exact release tags; the commit each tag resolves to is meant to be recorded in .github/workflows/actions.lock, generated by `gh actions-lock`, and a new CI job runs `gh actions-lock --verify`. pinact is removed everywhere: the CI check, the mise tool and its lock entry, and the global pre-commit helper that SHA-pinned staged workflows in every repository. A re-install deletes that helper from machines that have it, but only when its marker shows setup put it there. Renovate regenerates actions.lock itself, so the pinDigest rule is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UPEgcrCmartGXXU6TnZrvg
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bmthd
marked this pull request as ready for review
November 17, 2026 17:45
# Conflicts: # docs/supply-chain.ja.md # docs/supply-chain.md
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.
何を変えるか
GitHub Actions の参照固定を pinact(workflow に SHA を直書き)から、GitHub 公式の workflow lockfile(
.github/workflows/actions.lock)に置き換える。pinact はリポジトリ全体から外す。変更内容
uses:を SHA とバージョンコメントの組から、正確な release tag(actions/checkout@v7.0.1など)に戻した。どの commit を実行するかは lockfile が決める。quality.yml): pinact のチェックを削除し、Actions lockfilejob を追加した。拡張はgh extension install github/gh-actions-lock --pin v0.4.1で入れ、gh actions-lock --verifyを実行する。pinact-stagedを削除した。lockfile はリポジトリごとに opt-in するもので、マシン全体のフックが勝手に作るものではないため、移植はしていない。install.shは再実行時に古い helper を消す。ただし消すのは、マーカーから自分が置いたと分かるものだけ。pinactツールとmise.lockのエントリ、mise-pins-test.shの provenance 要件を削除した。代わりにgithub-cliの postinstall でgh-actions-lock拡張を入れる。actions.lockも再生成するため、不要になったpinDigestルールを削除した。docs/supply-chain{,.ja}.mdの Action source 節を書き換えた。README は削除したフックに触れていた 2 行をそれぞれ修正し、行数は増やしていない。⚠ マージ前に必要な作業:
actions.lockの生成作業したクラウド環境からは
github/gh-actions-lockをダウンロードできなかったため、lockfile はこの PR にまだ入っていない。このままではActions lockfilejob が失敗する。ローカルで次を実行して push すること。gh actions-lockはuses:を書き換えることがある(部分バージョンを完全なタグに絞るなど)ので、diff も確認すること。検証
bash -nは green。tests/はstatusline-test.sh以外すべて green。statusline-test.shは main でも同じように落ちるので、この PR とは無関係。tests/git-hooks-test.shに、古い helper を消すケースと、他人が置いた同名ファイルを残すケースを追加した。mise ls/mise lockの確認は CI 任せ。留意点
actions.lock対応は、まだ experimental とする情報がある。Ref changedで再生成に失敗する報告もある(GitHub Actions lockfile regeneration fails with “Ref changed” after action version updates renovatebot/renovate#47292)。Renovate の PR で lockfile が更新されているかは、最初の数回は確認したほうがよい。Generated by Claude Code