From 4216f5a1a55c6bd3d8a22428cabf1705c206fa17 Mon Sep 17 00:00:00 2001 From: Dan Fiedler Date: Tue, 18 Aug 2026 13:27:32 -0400 Subject: [PATCH] Pin GitHub Actions to full-length commit SHAs --- .github/dependabot.yml | 2 ++ .github/workflows/ci-change.yml | 4 ++-- .github/workflows/ci.yml | 12 ++++++------ .github/workflows/docs.yml | 10 +++++----- 4 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e3c144265..4992286a4 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,6 +5,8 @@ updates: schedule: interval: 'weekly' # Weekly updates for devDependencies. + cooldown: + default-days: 7 - package-ecosystem: 'npm' directory: '/' schedule: diff --git a/.github/workflows/ci-change.yml b/.github/workflows/ci-change.yml index d2cb4d873..ca89d32df 100644 --- a/.github/workflows/ci-change.yml +++ b/.github/workflows/ci-change.yml @@ -7,11 +7,11 @@ jobs: runs-on: ubuntu-latest if: ${{ github.event_name == 'pull_request' }} steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: fetch-depth: 0 - - uses: actions/setup-node@v6 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: '20' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5911102f5..1711d235b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,14 +17,14 @@ jobs: actions: 'read' steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: fetch-depth: 0 - name: Derive appropriate SHAs for base and head for `nx affected` commands uses: nrwl/nx-set-shas@3e9ad7370203c1e93d109be57f3b72eb0eb511b1 # v4.4.0 - - uses: actions/setup-node@v6 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: cache: 'yarn' node-version: '20' @@ -51,7 +51,7 @@ jobs: - run: yarn nx format:check --base origin/main - name: Upload Playwright artifacts - uses: actions/upload-artifact@v6 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 if: always() && steps.playwright-tests.outcome == 'failure' with: name: playwright-traces @@ -76,7 +76,7 @@ jobs: actions: 'read' name: React ${{ matrix.react }} Integration steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: fetch-depth: 0 @@ -85,7 +85,7 @@ jobs: with: main-branch-name: 'master' - - uses: actions/setup-node@v6 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: cache: 'yarn' node-version: '20' @@ -128,7 +128,7 @@ jobs: - name: Upload TSC logs if: always() && steps.type-check.outcome == 'failure' - uses: actions/upload-artifact@v6 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 with: name: typescript-react-${{ matrix.react }} path: tsc-logs diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index f518cfb19..699f97cdd 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -30,11 +30,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: fetch-depth: 0 - - uses: actions/setup-node@v6 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: cache: 'yarn' node-version: '20' @@ -44,12 +44,12 @@ jobs: - run: yarn nx run-many --target=build-storybook,extract-storybook-llms - name: Setup Pages - uses: actions/configure-pages@v5 + uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0 - name: Upload artifact - uses: actions/upload-pages-artifact@v5 + uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 with: # Upload entire repository path: './dist/storybook' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5