From 63377db579cc202df7f12fdbc3badae47e99e4c0 Mon Sep 17 00:00:00 2001 From: Peter Corke Date: Fri, 27 Nov 2026 11:23:26 +1000 Subject: [PATCH] ci: pin every third-party GitHub Action to a full commit SHA Each action keeps the version it ran before; the tag it was on is in a comment so Dependabot keeps the hash and the comment in step. pypa/gh-action-pypi-publish was on the moving branch release/v1 and is pinned to v1.14.3. actions/* stay on tags, as the ecosystem policy allows. No workflow could be run for the release jobs. Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/ci.yml | 2 +- .github/workflows/commitlint.yml | 2 +- .github/workflows/dependabot-auto-merge.yml | 2 +- .github/workflows/release-please.yml | 2 +- .github/workflows/release.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f49e6a94..2d58c8cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -174,7 +174,7 @@ jobs: coverage xml - name: Upload to Codecov - uses: codecov/codecov-action@v7 + uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1 with: files: ./coverage.xml token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index 3520f4bf..a7134045 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -11,7 +11,7 @@ jobs: # Dependabot and release-please manage their own titles — skip them. if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'github-actions[bot]' }} steps: - - uses: amannn/action-semantic-pull-request@v6 + - uses: amannn/action-semantic-pull-request@66e72920af32222769c386d81f89656ebcb6d6d5 # v6.1.4 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 8de7f45f..24f8d0d5 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Dependabot metadata id: metadata - uses: dependabot/fetch-metadata@v3 + uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0 with: github-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index b4e46478..d417559e 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -13,7 +13,7 @@ jobs: release-please: runs-on: ubuntu-latest steps: - - uses: googleapis/release-please-action@v5 + - uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0 id: release with: config-file: release-please-config.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 27837533..74a3f852 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,6 +95,6 @@ jobs: name: dist path: dist - - uses: pypa/gh-action-pypi-publish@release/v1 + - uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3 with: skip_existing: true