chore(renovate): adopt config:best-practices and pin actions to SHA#266
Merged
Conversation
- switch preset config:recommended -> config:best-practices (pins all GitHub Actions to SHA digests, enables config migration and abandoned-package detection) - add minimumReleaseAge: "7 days" cool-down before automerge to dodge yanked / tampered releases - restrict GitHub Actions automerge to minor/patch/digest updates so major action bumps require manual review - disable Renovate for the example's path-linked self reference
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
renovate.jsonを Renovate 公式のconfig:best-practicesに揃え、GitHub Actions の SHA(ダイジェスト)固定・自動マージ前の cool-down・major アクション更新の手動レビュー化を導入します。サプライチェーン対策と自動マージ運用の安全性を強化する設定変更で、ライブラリ機能には影響しません。変更内容
config:recommendedからconfig:best-practicesへ切り替え、自動マージ構成に不足していた安全策(リリース熟成待ち・major 除外)を補い、example の自己参照を更新対象から除外しました。composer.lock未コミット(ライブラリ配布)のためrangeStrategyはauto(type: library判別で広いレンジ維持)のまま据え置きます。config:recommended→config:best-practices。実効するのはhelpers:pinGitHubActionDigests(全 GitHub Actions を SHA 固定 / OpenSSF Scorecard 推奨)・:configMigration・abandonments:recommended。docker:pinDigests/:pinDevDependencies/:maintainLockFilesWeekly/security:minimumReleaseAgeNpmは本リポジトリでは no-opminimumReleaseAge: "7 days"を追加。yank / 改ざんされた公開を即マージしないためのサプライチェーン対策(週次スケジュールと合わせ安定した週次バッチで更新)matchUpdateTypesをminor/patch/digest/pin/pinDigestに限定し、major は手動レビューへ。従来は updateType 無制限で major も自動マージ対象だったギャップを是正examples/pest/composer.jsonの path リンク自己参照studio-design/openapi-contract-testingをenabled: falseで更新対象外にrangeStrategy(autoのまま)/require・require-devの patch・minor 自動マージルール /labels・timezone・schedule検証
npx renovate-config-validator renovate.json→Config validated successfullyNo errorレビュー時の注意
@v6→@<sha> # v6変換 PR が1本生成されます(pinDigestで自動マージ対象。気になる場合は初回のみ手動マージでも可)pr-title.yml)はrenovate[bot]を除外しませんが、Renovate デフォルトのchore(deps):/fix(deps):出力は規約を満たすため互換です関連情報
config:best-practices(Upgrade Best Practices)