security: enable Dependabot dependency auditing (C5) - #38
Draft
ardiyu07 wants to merge 1 commit into
Draft
Conversation
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.
概要
.github/dependabot.ymlを追加し、依存パッケージと GitHub Actions の自動監査を有効化します。upbond-executives#49 (C5) の一部です。背景
依存の脆弱性や不審な更新を自動検知できなければ、改ざんの混入に気づけません(ギャップG6)。特に SDK 配布事業者として、推移的依存からの混入は顧客資産に直結します。
設定内容
package.jsonの場所を検出して指定しています(モノレポは複数ディレクトリ)open-pull-requests-limit: 5— 一度に大量の PR が出てレビュー不能になるのを防ぐ設定です導入前の状況
稼働60リポジトリ中、dependabot 設定があったのは 2件のみでした(
torus-backend/upbond-openlogin)。GitHub Actions の SHA 固定(pinned actions)は本PRに含まれていません。
調査時点で 27 workflow・87箇所の
uses:を確認しましたが、SHA 固定は0件(すべてタグ参照)でした。タグは可変であり、上流が書き換われば pin の意味を成しません。ただし87箇所を一括変換すると、壊れた場合の切り分けが困難になるため別PRに分離します。
関連