Skip to content

ci: pin third-party GitHub Actions to commit SHAs#63

Merged
toshi0806 merged 1 commit into
mainfrom
issue-69-pin-actions
Jul 3, 2026
Merged

ci: pin third-party GitHub Actions to commit SHAs#63
toshi0806 merged 1 commit into
mainfrom
issue-69-pin-actions

Conversation

@toshi0806

Copy link
Copy Markdown
Member

What

Pin third-party GitHub Actions in .github/workflows/release.yml to full commit SHAs (with version comments) for supply-chain hardening, and add .github/dependabot.yml to keep the pinned actions up to date.

Follow-up to smkwlab/.github#69 (items 2/3/5).

Pins applied (release.yml)

Action Pinned SHA Tag
actions/checkout 34e114876b0b11c390a56381ad16ebd13914f8d5 v4.3.1
erlef/setup-beam 54075bcc5e249e4758d363f27d099f55d843f124 v1.24.1
actions/cache 0057852bfaa89a56745cba8c7296529d2fc39830 v4.3.0
actions/upload-artifact ea165f8d65b6e75b540449e92b4886f43607fa02 v4.6.2
actions/download-artifact d3f86a106a0bac45b974a628896c90dbdf5c8093 v4

Notes

  • Reusable smkwlab/.github/.github/workflows/*.yml@v1 refs (elixir.yml, security.yml, ai-code-review.yml) are intentionally left on @v1 — that is the org's shared-CI channel.
  • .github/dependabot.yml added because Renovate in this repo is mix-only and does not manage GitHub Actions; Dependabot now updates the SHA-pinned actions weekly (grouped).
  • Validated with actionlint (clean) and YAML parse.

🤖 Generated with Claude Code

Pin actions/checkout, actions/cache, erlef/setup-beam,
actions/upload-artifact, actions/download-artifact in release.yml to
full commit SHAs (with version comments) for supply-chain hardening.
Add .github/dependabot.yml to keep the pinned actions updated weekly.

Follow-up to smkwlab/.github#69.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JPuooHgsrboSEbfJsNf6iG

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

サプライチェーンセキュリティ強化のため、サードパーティ製GitHub ActionsをコミットSHAにピン留めする良い変更です。バージョンコメントも付与されており可読性・保守性が保たれています。1点だけ、コメントの粒度に関する軽微な指摘があります。


- name: Download all build artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ [LOW] 他のアクションはピンにパッチバージョンまで(例: v4.3.1, v4.6.2)がコメントに記載されていますが、download-artifact のみ # v4 とメジャーバージョンのみになっています。将来 Dependabot が更新した際の追跡容易性のため、他と揃えて具体的なタグ(例: v4.x.x)をコメントに記載することを推奨します。

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ご指摘ありがとうございます。この # v4 は、smkwlab/.github#69 のエコシステム横断ピン作業で全リポジトリに適用している固定 SHA→タグ対応表に由来しており、意図的にメジャーバージョン表記としています(他リポの download-artifact の同一 SHA d3f86a1 も揃えて # v4)。他アクションの粒度差はこの共通マッピングの粒度をそのまま反映したものです。追跡容易性は Dependabot(本 PR で追加)が SHA 更新時にコメントも書き換えるため担保されます。エコシステム全体の一貫性を優先し、このリビジョンでは据え置きます。

Comment thread .github/dependabot.yml
@@ -0,0 +1,12 @@
version: 2
updates:
# Keep SHA-pinned third-party GitHub Actions up to date (Renovate here is

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✨ [POSITIVE] Dependabot による GitHub Actions の SHA ピン自動更新の設定は適切です。Renovate が mix のみを扱うという役割分担がコメントで明示されており、保守担当者にとって意図が分かりやすくなっています。

@toshi0806
toshi0806 merged commit f191749 into main Jul 3, 2026
7 checks passed
@toshi0806
toshi0806 deleted the issue-69-pin-actions branch July 3, 2026 16:25
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