🛡️ Test & Secure STEP 08 / 15 ⏱ 3分 ⏳ 残り100分

TEST & SECURE: Dependabot

8.1 — Dependabot を有効化する

  1. リポジトリの SettingsSecurity and qualityAdvanced Security
  2. Dependabot セクション:
    • Dependency graph を有効化(Dependabot の前提条件)
    • Dependabot security updates を有効化
    • Dependabot version updates を有効化 → エディタが開き .github/dependabot.yml のテンプレートが表示されます
  3. テンプレートの package-ecosystem: """npm" に変更(本リポジトリは pnpm / npm エコシステム)。最終的に以下のような内容になります:
version: 2
updates:
  - package-ecosystem: "npm"
    directory: "/"
    schedule:
      interval: "weekly"
  1. Commit changes…「Create a new branch and start a pull request」 を選択 → PR を作成してマージ