Skip to content

chore(ci): GitHub Actions workflow の SHA pin / actionlint 統合 #280

Closed
1 of 1 issue completed
Closed

Description

@squne121

Source

Background

PR #279(fix(ci): actions を v6 に更新し Node.js 20 deprecation に対応 #270)のレビュー・Safety Claim Matrix レビューで、以下の supply chain security 改善が「今回スコープ外・follow-up 推奨」と記録された。

Outcome

.github/workflows/ci.yml の GitHub Actions が floating tag(v6, v8.1.0)から commit SHA pin に移行し、workflow YAML の静的検証(actionlint)が CI に追加された状態になる。

In Scope

  1. .github/workflows/ci.yml の全 action を commit SHA pin に移行
    • actions/checkout@v6 → actions/checkout@<SHA>
    • pnpm/action-setup@v6 → pnpm/action-setup@<SHA>
    • actions/setup-node@v6 → actions/setup-node@<SHA>
    • astral-sh/[email protected] → astral-sh/setup-uv@<SHA>
  2. actionlint を CI に追加(.github/workflows/ci.yml の YAML 構文・expr・input 検証)

Out of Scope

  • CODEOWNERS の追加(別 Issue)
  • pull_request_target 利用方針の変更
  • 他 workflow ファイルの変更(今回は ci.yml のみ)

Allowed Paths

  • .github/workflows/ci.yml

Acceptance Criteria

  • .github/workflows/ci.yml の全 action が commit SHA pin になっている(@vX.Y.Z 形式でない)
  • SHA コメント(# vX.Y.Z 等)で可読性を維持している
  • actionlint ジョブが CI に追加され、workflow YAML のエラーを検出できる
  • 全ジョブ(typecheck / lint / test / build / python-test / actionlint)が PASS している

Verification Commands

# AC1: SHA pin 確認(全 action が 40 桁 SHA になっている)
grep -E 'uses: .+@[0-9a-f]{40}' .github/workflows/ci.yml

# AC2〜AC4: 品質ゲート
pnpm typecheck
pnpm lint
pnpm test
pnpm build

# AC4: 全ジョブ PASS(actionlint 含む)
gh pr checks <PR番号> --repo squne121/loop-protocol

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • SHA の取得方法が upstream で変わり自動解決できない場合
  • actionlint のバージョン固定・管理方針で判断が必要な場合
  • In Scope の固定契約の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合

Runtime Verification Applicability

  • decision: deferred
  • reason: SHA pin が正常に動作するかどうかは PR を実際に push して GitHub Actions を実行しなければ確認できない
  • deferred_destination:
    • destination_type: pr
    • destination_ref: 本 Issue の実装 PR の CI 結果で確認

Safety Note

.github/CLAUDE.md に「.github/workflows/* の編集は CI 動作に直結するため、変更時は PR レビューで人間承認を必須とする」と記載されている。実装 PR では Safety Claim Matrix セクションを必ず記載すること。

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    phase/implementation
    triage-required
    workflow
    on May 23, 2026
  2. added 2 commits that reference this issue on Jun 3, 2026
  3. squne121 commented on Jun 3, 2026

    @squne121
    OwnerAuthor

    Issue #588 (#643) がマージされ、deploy-pages.yml・session-manifest.yml の全 action が SHA pin に移行し、actionlint が CI に追加されました。全 child issue がクローズ済みのため、parent #280 もクローズします。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase/implementationtriage-requiredworkflow

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions