chore: GitHub Actions を commit SHA でピン留め#9
Conversation
- `.github/workflows/*.yml` の全 `uses:` を `@<40文字 SHA> # vX.Y.Z` 形式に変換 (pinact 3.9.0 で自動生成) - Dependabot に `github-actions` / `npm` エコシステムを追加し、 SHA ピン留め後も週次で自動アップデートされるようにする Supply-chain 対策として、サードパーティ Actions のミュータブルなタグ参照を 不変の commit SHA に固定する。
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 59 minutes and 8 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request introduces a Dependabot configuration to automate updates for GitHub Actions and npm packages. The review feedback suggests utilizing the groups feature for both ecosystems to consolidate multiple updates into single pull requests, preventing the open-pull-requests-limit from being reached quickly. Additionally, it is recommended to remove redundant allow configurations in the npm section to keep the file concise.
| day: "monday" | ||
| time: "09:00" | ||
| timezone: "Asia/Tokyo" | ||
| open-pull-requests-limit: 5 |
| open-pull-requests-limit: 5 | ||
| labels: | ||
| - "dependencies" | ||
| - "npm" | ||
| commit-message: | ||
| prefix: "chore" | ||
| include: "scope" | ||
| allow: | ||
| - dependency-type: "all" |
There was a problem hiding this comment.
npm エコシステムにおいても、groups を活用して dependencies と devDependencies をそれぞれグループ化することを推奨します。これにより、open-pull-requests-limit: 5 の制限に達しにくくなり、重要な更新を見逃すリスクを減らせます。また、allow: - dependency-type: "all" はデフォルトの挙動であり冗長なため、削除して設定を整理しました。
open-pull-requests-limit: 5
groups:
dependencies:
dependency-type: "production"
devDependencies:
dependency-type: "development"
labels:
- "dependencies"
- "npm"
commit-message:
prefix: "chore"
include: "scope"
概要
supply-chain 対策として、すべての GitHub Actions を mutable なタグ参照から不変の commit SHA 参照に切り替えます。あわせて Dependabot 設定を追加し、ピン留め後も継続的にアップデートされる運用にします。
変更内容
.github/workflows/ci.yml/publish.ymlのuses:をowner/repo@<40文字SHA> # vX.Y.Z形式に変換(pinact 3.9.0 で自動生成).github/dependabot.ymlを新規作成github-actions: 月曜 09:00 JST / PR 上限 5npm: 水曜 09:00 JST / PR 上限 5動機
@v4等)は mutable で、Action 作者アカウント侵害時に@v4が差し替えられた場合、次回 CI 実行時に汚染コードが取り込まれる# vX.Y.Z)は Dependabot が SHA 自動更新する際の識別子として必要動作確認
関連
EcAuth organization 配下のほかのリポジトリでも同一方針で順次対応します。
🤖 Generated with Claude Code