From 0cfc2cb777da39eebead4808cdb06b99feaacd75 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 13 Nov 2026 06:38:50 +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 | 16 ++++++++-------- .github/workflows/release.yml | 2 +- .github/workflows/wporg-deploy.yml | 2 +- 4 files changed, 22 insertions(+), 10 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 e8ca3b1..76084b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,8 +14,8 @@ jobs: matrix: php: ["7.4", "8.0", "8.1", "8.2", "8.3", "8.4"] 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 }} coverage: none @@ -26,8 +26,8 @@ jobs: phpcs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: shivammathur/setup-php@v2 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # v2 with: php-version: "8.3" coverage: none @@ -43,8 +43,8 @@ jobs: js: 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 - run: node --check assets/js/hibira.js @@ -52,11 +52,11 @@ jobs: plugin-check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 - name: build the plugin folder run: | mkdir -p dist git archive --format=tar --prefix=hibira/ HEAD | tar -x -C dist - - uses: wordpress/plugin-check-action@v1 + - uses: wordpress/plugin-check-action@10857da14b6c2246d15402b3e69f777edcf8c12e # v1 with: build-dir: dist/hibira diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index da2265b..e27a0e2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: zip: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 - name: Tag matches the plugin version run: | version="$(sed -n 's/^ \* Version: *//p' hibira.php)" diff --git a/.github/workflows/wporg-deploy.yml b/.github/workflows/wporg-deploy.yml index 603ff0a..b7b43f9 100644 --- a/.github/workflows/wporg-deploy.yml +++ b/.github/workflows/wporg-deploy.yml @@ -33,7 +33,7 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 - name: Versions agree id: version