From 2c28ed1b4ee2a413cfaca7c01d612377c5da0b3f Mon Sep 17 00:00:00 2001 From: mfedderly <24275386+mfedderly@users.noreply.github.com> Date: Sat, 29 Mar 2025 12:43:37 -0400 Subject: [PATCH] Pin the exact SHA1's of GitHub Actions we use (#2863) This is as recommended in the security guide https://docs.github.com/en/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions#using-third-party-actions, and as demonstrated recently in an action we don't use https://www.stepsecurity.io/blog/harden-runner-detection-tj-actions-changed-files-action-is-compromised --- .github/workflows/prerelease.yml | 6 +++--- .github/workflows/release.yml | 8 ++++---- .github/workflows/turf.yml | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index ddc7da4eb..254259cfa 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -17,17 +17,17 @@ jobs: runs-on: ${{matrix.platform}} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2 with: fetch-depth: 0 - name: Install pnpm - uses: pnpm/action-setup@v4 + uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0 with: run_install: false - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # 4.3.0 with: node-version: ${{ matrix.node-version }} registry-url: "https://registry.npmjs.org" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ffcf3c62e..4547c0bb1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,17 +21,17 @@ jobs: runs-on: ${{matrix.platform}} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2 with: fetch-depth: 0 - name: Install pnpm - uses: pnpm/action-setup@v4 + uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0 with: run_install: false - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # 4.3.0 with: node-version: ${{ matrix.node-version }} registry-url: "https://registry.npmjs.org" @@ -51,7 +51,7 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Create Github Release - uses: softprops/action-gh-release@v2 + uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # 2.2.1 with: make_latest: true generate_release_notes: true diff --git a/.github/workflows/turf.yml b/.github/workflows/turf.yml index ff07ad9e8..fa2147665 100644 --- a/.github/workflows/turf.yml +++ b/.github/workflows/turf.yml @@ -23,15 +23,15 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2 - name: Install pnpm - uses: pnpm/action-setup@v4 + uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0 with: run_install: false - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # 4.3.0 with: cache: "pnpm" node-version: ${{ matrix.node-version }}