Repository navigation
fix(#728): quote HEAD^{commit} in deploy-pages.yml to resolve ShellCheck SC1083 - #730
Conversation
…eck SC1083 Quote the argument to git rev-parse --verify in two locations (main deploy and PR preview steps) to prevent ShellCheck SC1083 warning about literal braces. Closes #728 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Preview URLPreview removed (PR #730 closed). |
squne121
left a comment
There was a problem hiding this comment.
PR Review: #730 - PR #728 implementation verdict
Verification Summary
All mandatory gates cleared:
-
Linked Issue Contract (#728): Confirmed from contract snapshot comment
#issuecomment-4640888541- Scope:
.github/workflows/deploy-pages.ymlonly (Allowed Paths confirmed) - AC1: Quoted
"HEAD^{commit}"form present (baseline fail expected) - AC2: Unquoted form absent (negated verification, baseline fail expected)
- Runtime Verification: not_applicable (static lint task)
- Scope:
-
Diff Verification:
- sha=$(git rev-parse --verify HEAD^{commit}) + sha=$(git rev-parse --verify "HEAD^{commit}")
Two locations (lines 56, 159 in diff context) ✓
Allowed Paths compliance: ✓ (only.github/workflows/deploy-pages.ymlmodified) -
CI Status (
gh pr checks 730):- actionlint: pass ✓ (SC1083 resolved)
- all other checks: pass ✓
-
AC Coverage:
- AC1 verification:
rg -q 'rev-parse --verify "HEAD\^\{commit\}"' ...→ PASS - AC2 verification:
! rg -q 'rev-parse --verify HEAD\^\{commit\}' ...→ PASS
- AC1 verification:
-
Merge Status:
- mergeable: MERGEABLE ✓
- mergeStateStatus: CLEAN ✓
- head SHA: d422d2a ✓
Assessment
PR #730 satisfies all acceptance criteria from issue #728:
- ShellCheck SC1083 warning eliminated (quotes added to prevent literal
{/}interpretation) - Workflow logic unchanged (set -euo pipefail, validation regex, deploy procedure preserved)
- File scoping enforced (only deploy-pages.yml touched)
Note: This is a self-authored PR. Verdict recorded as comment per policy.
LOOP_VERDICT:
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: d422d2a8790c2c80e7deb43d4f8e1ba60d0a681a
結論内容面は APPROVE でよいです。 ただし、PR がまだ Draft 状態なので、実運用上は Ready for review に変更 → 人間承認 → merge の順にしてください。Issue #728 自体も 契約充足レビューIssue #728 の目的は、 PR #730 の実差分は、main deploy step と PR preview step の2箇所で以下の同一変更です。([GitHub]1) - sha=$(git rev-parse --verify HEAD^{commit})
+ sha=$(git rev-parse --verify "HEAD^{commit}")これは ShellCheck SC1083 の修正として妥当です。ShellCheck 公式は、リテラルな CI / 実行結果
敵対的指摘ブロッカーなし。 非ブロッカー 1: Draft 状態のままではマージ運用に進めない。 非ブロッカー 2: Node.js 20 Actions deprecation warning は別Issue化すべき。 非ブロッカー 3: 検証コマンドのAC2は十分だが、将来の再利用にはやや脆い。 推奨レビューコメントVerdict: APPROVE
Issue #728 の契約に対して、PR #730 は適切に充足しています。
確認結果:
- Allowed Paths は `.github/workflows/deploy-pages.yml` のみで遵守
- `git rev-parse --verify HEAD^{commit}` の2箇所が `"HEAD^{commit}"` にクォート化済み
- ShellCheck SC1083 の修正方針として妥当
- `ci` / `actionlint` / `deploy-pages` は成功
- workflow ロジック、deploy ロジック、SHA検証ロジックには不要な変更なし
ブロッカーなし。
マージ前の運用条件:
- Draft を Ready for review に変更
- `.github/workflows/*` 変更のため、人間承認後に merge
非ブロッカー:
- CI上に Node.js 20 actions deprecation warning が出ているため、別Issueで Node 24 対応を追跡することを推奨する。最終判断: Ready for review 化と人間承認が済めば merge 可。 |
post-merge-cleanup: 完了 (2026-06-07T09:50Z)
実施内容
follow-up(dedupe 結果)Node.js 20 → Node 24 移行の follow-up は本セッションで既に #731(OPEN) として起票済みのため新規起票せず(reused_open)。先行 closed として #553 / #270 も存在。 FOLLOW_UP_MATERIALIZATION_RESULT_V1:
schema_version: 1
materialized_by: post-merge-cleanup
follow_up_issues:
- request_dedupe_key: "follow-up:squne121/loop-protocol:pr/730:node-js-20-actions-deprecation"
status: reused_open
issue:
number: 731
url: "https://github.com/squne121/loop-protocol/issues/731"
reason: "本セッションで先行起票済み(#731 OPEN)。重複起票回避。"
note_only_observations:
- dedupe_key: "post-merge:pre-existing-worktree-changes"
source_url: "https://github.com/squne121/loop-protocol/pull/730"
source_note_id: "cleanup"
summary: "main worktree に cleanup 対象外の pre-existing 変更(D tests/fixtures/agent-session-manifest/temp-invalid-no-markers.md, ?? artifacts/)が残存。別作業 #725 の WIP は branch issue-725-timeout-neutral / commit 05081ca に保全済みでデータ損失なし。" |
要約
.github/workflows/deploy-pages.ymlの 2 箇所でgit rev-parse --verifyの引数にダブルクォートを追加し、ShellCheck SC1083 警告を解消します。変更内容
HEAD^{commit}を"HEAD^{commit}"に修正HEAD^{commit}を"HEAD^{commit}"に修正理由
ShellCheck の SC1083 警告は未クォートの
{/}に対して発火します。これはシェルに特殊文字として解釈されることを防ぐため、引数をダブルクォートで囲む必要があります。受け入れ条件
"HEAD^{commit}"が 2 箇所存在するHEAD^{commit}が 0 件(negated 検証)両 AC は検証完了・PASS です。
テスト
静的解析(rg による形検証)で確認済みです。
.github/workflows/*の変更は人間承認が必須です。PR CI の actionlint ジョブが green になることで SC1083 解消を確認します。本 PR のマージで Issue をクローズします。Closes #728