From ab6a72c3e2d5bb678e5e3e7d17538e2f1e0266ca Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 13 Nov 2026 06:34:41 +0000 Subject: [PATCH] Pin workflow actions to commits Every third-party and GitHub action in the workflows is referenced by its full commit SHA, with the version it corresponds to in a comment, so a moved tag cannot change what runs with the publish credentials. Dependabot moves the pins once a month in one grouped pull request. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01SHtsCFLBM3qp95nKz1j5L3 --- .github/dependabot.yml | 12 ++++++++++++ .github/workflows/ci.yml | 8 ++++---- .github/workflows/publish.yml | 4 ++-- 3 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..709091a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +# The workflows' actions are pinned to a commit. Once a month Dependabot +# moves the pins in one grouped pull request and keeps the version comment +# beside each. Package security updates come from the organization's +# Dependabot settings. +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: { interval: monthly } + open-pull-requests-limit: 1 + groups: + actions: { patterns: ["*"] } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f771ac..60ea62a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,8 +14,8 @@ jobs: matrix: node: ["20", "22", "24"] steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: node-version: ${{ matrix.node }} - run: npm ci @@ -31,8 +31,8 @@ jobs: matrix: react: ["17", "18"] steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: node-version: "22" - run: npm ci diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2d48e7b..e0600ff 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,8 +17,8 @@ jobs: npm: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: node-version: "22" registry-url: https://registry.npmjs.org