From 20a187542c9474e3c3e3d0caefada65f1e08e45f Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 13 Nov 2026 06:38:11 +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 ++++---- 2 files changed, 16 insertions(+), 4 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 a4ef751..b8e667d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,8 +28,8 @@ jobs: php: "8.4" name: Statamic ${{ matrix.statamic }} / Testbench ${{ matrix.testbench }} / PHP ${{ matrix.php }} steps: - - uses: actions/checkout@v4 - - uses: shivammathur/setup-php@v2 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # v2 with: php-version: ${{ matrix.php }} extensions: intl, exif, gd @@ -51,8 +51,8 @@ jobs: runs-on: ubuntu-latest name: dist is up to date 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 && npm run build