Skip to content

chore(ci): workflow の権限を明示・Dependabot 導入 - #46

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

変更内容

  • 全 workflow の先頭に permissions: contents: read を明示し、pr_check.yml の danger job に PR コメント・コミットステータス用の権限を明示する
  • .github/dependabot.yml を追加し、workflow の action(SHA 固定)を毎週月曜 10:00 にまとめて更新する PR が作られるようにする(flugma と同じ設定)
  • actions/cache を v2 → v4.3.0 に上げる。v2 は 2025-02 のキャッシュサービス移行で非対応になり、復元がヒットせず保存も Unable to reserve cache で失敗する(job は落ちないが実質 no-op)。入力(path / key / restore-keys)は v4 でも互換

背景

org の Actions 既定権限は現在 write。将来 read に切り替える前提で、workflow 先頭を read にし、書き込みが必要な job にだけ権限を明示する。現時点(既定 write)でも動作は変わらない。
SHA は現在のタグが指すコミットと同一のため、使う action のバージョンは変わらない(動作していない actions/cache v2 の更新を除く)。

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@hatisuka
hatisuka requested a review from a team as a code owner October 20, 2026 02:48
@hatisuka hatisuka self-assigned this Oct 20, 2026
ksugahara0808
ksugahara0808 previously approved these changes Oct 20, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@hatisuka

Copy link
Copy Markdown
Contributor Author

@ksugahara0808
cacheを更新しておきました

@tamucha tamucha left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ご対応ありがとうございます!LGTM!

@hatisuka
hatisuka merged commit 158b479 into main Oct 20, 2026
7 checks passed
@hatisuka
hatisuka deleted the chore/workflow-permissions branch October 20, 2026 06:42
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.

3 participants