From 94f82abad872bb32c97520d75b1d65076d6c6a89 Mon Sep 17 00:00:00 2001 From: Thibaud-Vdb Date: Wed, 14 Oct 2026 15:26:02 +0200 Subject: [PATCH 1/4] CI: Pin the third-party actions to the commits their tags resolve to A tag such as oven-sh/setup-bun@v2.1.2 is a movable pointer: whoever can push to that repository decides what runs in these jobs. The 25 third-party references in the five hand-written workflows now point at the commit the tag resolved to today, with the tag kept as a comment so the version is still readable. ruby/setup-ruby@master was a branch, it is pinned to the v1.329.0 release. First-party actions/* stay on their tags. pullfrog.yml is left as its header asks. --- .github/workflows/changelog.yml | 2 +- .github/workflows/claude.yml | 2 +- .github/workflows/copilot-setup-steps.yml | 2 +- .github/workflows/push.yml | 44 +++++++++++------------ 4 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 9e59f583f91..424cb99f836 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@main - - uses: oven-sh/setup-bun@v2.1.2 + - uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2 with: bun-version: 1.4.3 - name: Push changelog diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 8d8ee435163..55f02e28f75 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -32,7 +32,7 @@ jobs: - name: Run Claude Code id: claude - uses: anthropics/claude-code-action@v1 + uses: anthropics/claude-code-action@34968b5981d5d170904281aa3df6f3c0d4a28855 # v1.0.249 with: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index db94ae767fe..e2a3c95c49e 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -20,7 +20,7 @@ jobs: uses: actions/setup-node@v6 with: node-version: 20 - - uses: oven-sh/setup-bun@v2.1.2 + - uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2 with: bun-version: 1.4.3 - name: Cache turbo build setup diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index d3c62af8680..ba46cf0f981 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -38,7 +38,7 @@ jobs: with: fetch-depth: 0 filter: blob:none - - uses: oven-sh/setup-bun@v2.1.2 + - uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2 with: bun-version: 1.4.3 - name: Query Turborepo task graph and create CI plan @@ -56,13 +56,13 @@ jobs: - uses: actions/setup-node@v6 with: node-version: 25 - - uses: oven-sh/setup-bun@v2.1.2 + - uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2 with: bun-version: 1.4.3 - name: Install run: bun ci - name: Cache Turbo - uses: rharkor/caching-for-turbo@v2.3.11 + uses: rharkor/caching-for-turbo@0abc2381e688c4d2832f0665a68a01c6e82f0d6c # v2.3.11 - name: Test Lambda IT run: | bun run testlambda @@ -85,13 +85,13 @@ jobs: - uses: actions/setup-node@v6 with: node-version: 25 - - uses: oven-sh/setup-bun@v2.1.2 + - uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2 with: bun-version: 1.4.3 - name: Install run: bun ci - name: Cache Turbo - uses: rharkor/caching-for-turbo@v2.3.11 + uses: rharkor/caching-for-turbo@0abc2381e688c4d2832f0665a68a01c6e82f0d6c # v2.3.11 - name: Build Next.js SSR app timeout-minutes: 10 run: | @@ -107,13 +107,13 @@ jobs: - uses: actions/setup-node@v6 with: node-version: 25 - - uses: oven-sh/setup-bun@v2.1.2 + - uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2 with: bun-version: 1.4.3 - name: Install run: bun ci - name: Cache Turbo - uses: rharkor/caching-for-turbo@v2.3.11 + uses: rharkor/caching-for-turbo@0abc2381e688c4d2832f0665a68a01c6e82f0d6c # v2.3.11 - name: Install E2E deps run: cd packages/example && bunx playwright install --with-deps - name: Test Example E2E @@ -138,7 +138,7 @@ jobs: - uses: actions/setup-node@v6 with: node-version: 26 - - uses: oven-sh/setup-bun@v2.1.2 + - uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2 with: bun-version: 1.4.3 - name: Install @@ -146,7 +146,7 @@ jobs: - name: Install deps run: cd packages/web-renderer && bunx playwright install --with-deps && cd ../media && bunx playwright install --with-deps - name: Cache Turbo - uses: rharkor/caching-for-turbo@v2.3.11 + uses: rharkor/caching-for-turbo@0abc2381e688c4d2832f0665a68a01c6e82f0d6c # v2.3.11 - name: Test web renderer run: | bun run testwebrenderer @@ -164,13 +164,13 @@ jobs: - uses: actions/setup-node@v6 with: node-version: 16 - - uses: oven-sh/setup-bun@v2.1.2 + - uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2 with: bun-version: 1.4.3 - name: Install run: bun ci - name: Cache Turbo - uses: rharkor/caching-for-turbo@v2.3.11 + uses: rharkor/caching-for-turbo@0abc2381e688c4d2832f0665a68a01c6e82f0d6c # v2.3.11 - name: Test SSR timeout-minutes: 15 run: | @@ -187,7 +187,7 @@ jobs: - uses: actions/setup-node@v6 with: node-version: 16 - - uses: oven-sh/setup-bun@v2.1.2 + - uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2 with: bun-version: 1.4.3 - name: Setup Go @@ -199,11 +199,11 @@ jobs: uses: actions/setup-python@v6 with: python-version: '3.11' - - uses: ruby/setup-ruby@master + - uses: ruby/setup-ruby@651ff0d62c5c79bed6d53ec518387aae20e72c1a # v1.329.0 with: ruby-version: '3.1' - name: Setup PHP - uses: shivammathur/setup-php@v2 + uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0 with: php-version: '8.4' tools: none @@ -213,7 +213,7 @@ jobs: - name: Install run: bun ci - name: Cache Turbo - uses: rharkor/caching-for-turbo@v2.3.11 + uses: rharkor/caching-for-turbo@0abc2381e688c4d2832f0665a68a01c6e82f0d6c # v2.3.11 - name: Monorepo checks timeout-minutes: 10 run: | @@ -238,7 +238,7 @@ jobs: - uses: actions/setup-node@v6 with: node-version: 25 - - uses: oven-sh/setup-bun@v2.1.2 + - uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2 with: bun-version: 1.4.3 - name: Cache Bun dependencies (Windows) @@ -252,7 +252,7 @@ jobs: - name: Install run: bun ci - name: Cache Turbo - uses: rharkor/caching-for-turbo@v2.3.11 + uses: rharkor/caching-for-turbo@0abc2381e688c4d2832f0665a68a01c6e82f0d6c # v2.3.11 - name: Test templates timeout-minutes: 20 run: | @@ -274,7 +274,7 @@ jobs: - uses: actions/setup-node@v6 with: node-version: 25 - - uses: oven-sh/setup-bun@v2.1.2 + - uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2 with: bun-version: 1.4.3 - name: Install @@ -282,7 +282,7 @@ jobs: env: CI: true - name: Cache Turbo - uses: rharkor/caching-for-turbo@v2.3.11 + uses: rharkor/caching-for-turbo@0abc2381e688c4d2832f0665a68a01c6e82f0d6c # v2.3.11 - name: Perform stylecheck timeout-minutes: 10 run: | @@ -314,7 +314,7 @@ jobs: - uses: actions/setup-node@v6 with: node-version: ${{ matrix.node_version }} - - uses: oven-sh/setup-bun@v2.1.2 + - uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2 with: bun-version: 1.4.3 - name: Cache Bun dependencies (Windows) @@ -328,7 +328,7 @@ jobs: - name: Install run: bun ci - name: Cache Turbo - uses: rharkor/caching-for-turbo@v2.3.11 + uses: rharkor/caching-for-turbo@0abc2381e688c4d2832f0665a68a01c6e82f0d6c # v2.3.11 - name: Install Media browser if: matrix.os == 'macos-latest' && needs.affected.outputs.build == 'true' run: cd packages/media && bunx playwright install --with-deps chromium @@ -373,7 +373,7 @@ jobs: timeout-minutes: 5 steps: - uses: actions/checkout@v6 - - uses: oven-sh/setup-bun@v2.1.2 + - uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2 with: bun-version: 1.4.3 - name: Validate required CI results From ec787bb8fae2d7c768e7a212556467dda1ed25da Mon Sep 17 00:00:00 2001 From: Thibaud-Vdb Date: Wed, 14 Oct 2026 15:26:02 +0200 Subject: [PATCH 2/4] CI: Declare what the push, changelog and Discord workflows may do with the token push.yml, changelog.yml and discord.yml had no permissions block, so every job received the repository's default token scopes. None of their jobs writes back to GitHub: push.yml builds, tests and uploads artifacts, changelog.yml posts to Discord with its own token, and discord.yml only calls a webhook. push.yml and changelog.yml get a read-only token, discord.yml gets none at all, which also shrinks what a pull_request_target run can reach. --- .github/workflows/changelog.yml | 3 +++ .github/workflows/discord.yml | 2 ++ .github/workflows/push.yml | 3 +++ 3 files changed, 8 insertions(+) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 424cb99f836..47ee590b099 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -6,6 +6,9 @@ on: tag: description: 'Release tag to post (e.g. v4.0.422). Leave empty for latest.' required: false +permissions: + contents: read + name: Publish latest release jobs: diff --git a/.github/workflows/discord.yml b/.github/workflows/discord.yml index f4538506f1f..85569ab05dd 100644 --- a/.github/workflows/discord.yml +++ b/.github/workflows/discord.yml @@ -1,6 +1,8 @@ name: Discord notifications on: [push, pull_request_target] +permissions: {} + jobs: notify_discord: diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index ba46cf0f981..3dc5e068e89 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -3,6 +3,9 @@ on: branches: - main pull_request: +permissions: + contents: read + name: Install and Test concurrency: From 6c74c75b8332883ac337ca0f1a2fc3e7ec50dca8 Mon Sep 17 00:00:00 2001 From: Thibaud-Vdb Date: Wed, 14 Oct 2026 15:26:03 +0200 Subject: [PATCH 3/4] CI: Stop persisting the checkout token where no step pushes with git actions/checkout writes the job token into .git/config by default, so every later step, including third-party actions and the packages they install, can read it. None of the 13 checkouts in push.yml, changelog.yml and copilot-setup-steps.yml pushes with git, so they no longer keep the token. The claude.yml and pullfrog.yml checkouts are untouched: those agents commit back and their token path is theirs to decide. --- .github/workflows/changelog.yml | 2 ++ .github/workflows/copilot-setup-steps.yml | 2 ++ .github/workflows/push.yml | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 47ee590b099..09092238e74 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -17,6 +17,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@main + with: + persist-credentials: false - uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2 with: bun-version: 1.4.3 diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index e2a3c95c49e..931be94ca1d 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -16,6 +16,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v6 + with: + persist-credentials: false - name: Set up Node.js uses: actions/setup-node@v6 with: diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 3dc5e068e89..f22521e5d62 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -39,6 +39,7 @@ jobs: steps: - uses: actions/checkout@v6 with: + persist-credentials: false fetch-depth: 0 filter: blob:none - uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2 @@ -56,6 +57,8 @@ jobs: name: Lambda integration tests steps: - uses: actions/checkout@v6 + with: + persist-credentials: false - uses: actions/setup-node@v6 with: node-version: 25 @@ -85,6 +88,8 @@ jobs: name: Next.js SSR build steps: - uses: actions/checkout@v6 + with: + persist-credentials: false - uses: actions/setup-node@v6 with: node-version: 25 @@ -107,6 +112,8 @@ jobs: name: Browser tests steps: - uses: actions/checkout@v6 + with: + persist-credentials: false - uses: actions/setup-node@v6 with: node-version: 25 @@ -138,6 +145,8 @@ jobs: name: Web renderer tests steps: - uses: actions/checkout@v6 + with: + persist-credentials: false - uses: actions/setup-node@v6 with: node-version: 26 @@ -164,6 +173,8 @@ jobs: name: SSR tests steps: - uses: actions/checkout@v6 + with: + persist-credentials: false - uses: actions/setup-node@v6 with: node-version: 16 @@ -186,6 +197,8 @@ jobs: name: Monorepo tests steps: - uses: actions/checkout@v6 + with: + persist-credentials: false - parallel: - uses: actions/setup-node@v6 with: @@ -237,6 +250,8 @@ jobs: BUN_INSTALL_CACHE_DIR: ${{ matrix.os == 'windows-latest' && 'D:\.bun\install\cache' || '' }} steps: - uses: actions/checkout@v6 + with: + persist-credentials: false - parallel: - uses: actions/setup-node@v6 with: @@ -272,6 +287,7 @@ jobs: steps: - uses: actions/checkout@v6 with: + persist-credentials: false fetch-depth: 0 filter: blob:none - uses: actions/setup-node@v6 @@ -311,6 +327,7 @@ jobs: steps: - uses: actions/checkout@v6 with: + persist-credentials: false fetch-depth: 0 filter: blob:none - parallel: @@ -376,6 +393,8 @@ jobs: timeout-minutes: 5 steps: - uses: actions/checkout@v6 + with: + persist-credentials: false - uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2 with: bun-version: 1.4.3 From 569e03fd244f004fcc52e0f8d023c88fcb28d58c Mon Sep 17 00:00:00 2001 From: JonnyBurger Date: Mon, 19 Oct 2026 18:15:46 +0200 Subject: [PATCH 4/4] Pin changelog checkout to actions/checkout@v6 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/changelog.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 09092238e74..30542635ac2 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -16,7 +16,7 @@ jobs: name: Post on Discord runs-on: ubuntu-latest steps: - - uses: actions/checkout@main + - uses: actions/checkout@v6 with: persist-credentials: false - uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2