From e492be19a2554d72c4ba35a87b2e46a73b21cad6 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Wed, 26 Aug 2026 08:45:04 +0100 Subject: [PATCH] chore: pin GitHub Actions to commit SHAs and enable dependabot Aligns with the playwright repo: pin `actions/checkout` and `actions/setup-node` to full commit SHAs, and add a dependabot config that groups github-actions updates weekly with a 7-day cooldown. Same as #177, but pinning newer action versions (checkout v7.0.1, setup-node v6.5.0). Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01DK7UTcz4cTyt6mtnXfjGzS --- .github/dependabot.yml | 11 +++++++++++ .github/workflows/ci.yml | 4 ++-- .github/workflows/publish.yml | 4 ++-- 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..2c48305 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + groups: + github-actions: + patterns: ["*"] + schedule: + interval: "weekly" + cooldown: + default-days: 7 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2c17fa..8f49557 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,9 +13,9 @@ jobs: node-version: [20.x, 22.x, 24.x, 26.x] os: [ubuntu-latest, windows-latest, macos-latest] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: ${{ matrix.node-version }} cache: 'npm' diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dccb6bf..5fe8f21 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,8 +10,8 @@ jobs: contents: read id-token: write # Required for OIDC steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: 20 registry-url: https://registry.npmjs.org/