Skip to content

chore(ci): action の SHA 固定・権限の明示・Dependabot 導入 - #12

Merged
hatisuka merged 2 commits into
mainfrom
chore/workflow-permissions
Oct 20, 2026
Merged

hatisuka merged 2 commits into
mainfrom
chore/workflow-permissions

Conversation

@hatisuka

@hatisuka hatisuka commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

変更内容

  • pr.yml の Danger の Docker イメージをタグ指定から digest に固定する(ghcr.io/danger/danger-swift-with-swiftlint:3.8.0 → @sha256:2ad66810…。現在の 3.8.0 タグと同一イメージ)。actions/checkout は SHA 固定済みのため変更なし
  • workflow 先頭に permissions: contents: read を明示し、Danger の job にだけ必要な権限(PR へのコメント・コミットステータス付与)を明示する
  • .github/dependabot.yml を追加し、workflow の action(SHA 固定)を毎週月曜 10:00 にまとめて更新する PR が作られるようにする(flugma と同じ設定)

背景

org の Actions 既定権限は現在 write。将来 read に切り替える前提で、workflow 先頭を read にし、書き込みが必要な job にだけ権限を明示する。現時点(既定 write)でも動作は変わらない。
SHA 固定するとタグ指定と違い自動で新しい版に追従しなくなるため、Dependabot で更新 PR を受け取る。SDK 本体は外部ライブラリに依存していないため、対象は github-actions のみ。

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@hatisuka hatisuka self-assigned this Oct 20, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@hatisuka hatisuka changed the title chore(ci): action の SHA 固定・権限の明示 chore(ci): action の SHA 固定・権限の明示・Dependabot 導入 Oct 20, 2026
@hatisuka
hatisuka merged commit 04292ac into main Oct 20, 2026
6 checks passed
@hatisuka
hatisuka deleted the chore/workflow-permissions branch October 20, 2026 03:51
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.

2 participants