From cdd08bbf58ed52141e21c9e2bd05b2047e8aac67 Mon Sep 17 00:00:00 2001 From: eliottreich Date: Sat, 13 Jun 2026 05:01:26 +0300 Subject: [PATCH] ci: pin third-party GitHub Actions to commit SHAs (#12662) Pins all 12 third-party action references currently on mutable tags to the commit each tag resolves to, across 4 workflow files, keeping a # tag comment. Ref-only, no behavior change. --- .github/workflows/calibreapp-image-actions.yml | 4 ++-- .github/workflows/ci.yml | 4 ++-- .github/workflows/docker.yml | 14 +++++++------- .github/workflows/update-node.yml | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/calibreapp-image-actions.yml b/.github/workflows/calibreapp-image-actions.yml index ab3d7c6689..d90251c498 100644 --- a/.github/workflows/calibreapp-image-actions.yml +++ b/.github/workflows/calibreapp-image-actions.yml @@ -43,7 +43,7 @@ jobs: uses: actions/checkout@v5 - name: Compress Images id: calibre - uses: calibreapp/image-actions@main + uses: calibreapp/image-actions@3d5873ac3e7bf1a38b24d9778d8dc639d5706d8b # main with: githubToken: ${{ secrets.GITHUB_TOKEN }} # For non-Pull Requests, run in compressOnly mode and we'll PR after. @@ -54,7 +54,7 @@ jobs: if: | github.event_name != 'pull_request' && steps.calibre.outputs.markdown != '' - uses: peter-evans/create-pull-request@v3 + uses: peter-evans/create-pull-request@18f7dc018cc2cd597073088f7c7591b9d1c02672 # v3 with: title: "chore: Auto Compress Images" branch-suffix: timestamp diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7d4d299439..208f43f7e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: deps: ${{ steps.filter.outputs.deps }} steps: - uses: actions/checkout@v5 - - uses: dorny/paths-filter@v2 + - uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2 id: filter with: filters: | @@ -126,7 +126,7 @@ jobs: run: echo "NODE_ENV=production" >> $GITHUB_ENV - run: yarn vite:build - name: Send bundle stats to RelativeCI - uses: relative-ci/agent-action@v2 + uses: relative-ci/agent-action@38328454d6a23942175eba485fca4fbb807b1f03 # v2 with: key: ${{ secrets.RELATIVE_CI_KEY }} token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 8feaa4807b..722402d1c3 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@v5 - name: Setup Blacksmith Builder - uses: useblacksmith/setup-docker-builder@v1 + uses: useblacksmith/setup-docker-builder@ab5c1da94f53f5cd75c1038092aa276dddfccbba # v1 - name: Docker base meta id: base_meta @@ -38,7 +38,7 @@ jobs: - name: Build and push base image id: base_build - uses: useblacksmith/build-push-action@v2 + uses: useblacksmith/build-push-action@fb9e3e6a9299c78462bfadd0d93352c316adc9b8 # v2 with: context: . file: Dockerfile.base @@ -60,7 +60,7 @@ jobs: - name: Build and push id: build - uses: useblacksmith/build-push-action@v2 + uses: useblacksmith/build-push-action@fb9e3e6a9299c78462bfadd0d93352c316adc9b8 # v2 with: context: . file: Dockerfile @@ -93,7 +93,7 @@ jobs: uses: actions/checkout@v5 - name: Setup Blacksmith Builder - uses: useblacksmith/setup-docker-builder@v1 + uses: useblacksmith/setup-docker-builder@ab5c1da94f53f5cd75c1038092aa276dddfccbba # v1 - name: Docker base meta id: base_meta @@ -113,7 +113,7 @@ jobs: - name: Build and push base image id: base_build - uses: useblacksmith/build-push-action@v2 + uses: useblacksmith/build-push-action@fb9e3e6a9299c78462bfadd0d93352c316adc9b8 # v2 with: context: . file: Dockerfile.base @@ -135,7 +135,7 @@ jobs: - name: Build and push id: build - uses: useblacksmith/build-push-action@v2 + uses: useblacksmith/build-push-action@fb9e3e6a9299c78462bfadd0d93352c316adc9b8 # v2 with: context: . file: Dockerfile @@ -182,7 +182,7 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Setup Blacksmith Builder - uses: useblacksmith/setup-docker-builder@v1 + uses: useblacksmith/setup-docker-builder@ab5c1da94f53f5cd75c1038092aa276dddfccbba # v1 - name: Docker meta id: meta diff --git a/.github/workflows/update-node.yml b/.github/workflows/update-node.yml index beef80ed35..b87a089b64 100644 --- a/.github/workflows/update-node.yml +++ b/.github/workflows/update-node.yml @@ -78,7 +78,7 @@ jobs: - name: Create pull request if: steps.check.outputs.updated == 'true' - uses: peter-evans/create-pull-request@v7 + uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7 with: commit-message: "fix: Update Node.js to ${{ steps.check.outputs.latest }}" title: "fix: Update Node.js to ${{ steps.check.outputs.latest }}"