From ff9791751b55937a0d6e336a8b8f7146e4bb50dc Mon Sep 17 00:00:00 2001 From: Lukas Hauser Date: Tue, 3 Mar 2026 20:41:29 +0100 Subject: [PATCH 1/2] Default token only on public github instance (copied from https://github.com/oven-sh/setup-bun/pull/157) --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index aecd94eee..24521bce3 100644 --- a/action.yml +++ b/action.yml @@ -163,7 +163,7 @@ runs: uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # https://github.com/oven-sh/setup-bun/releases/tag/v2.1.2 with: bun-version: 1.3.6 - token: ${{ inputs.github_token || github.token }} + token: ${{ inputs.github_token || (github.server_url == 'https://github.com' && github.token || '') }} - name: Setup Custom Bun Path if: inputs.path_to_bun_executable != '' From bc8a01ac1ad91fae2df569f6cd8f2baba8ce9133 Mon Sep 17 00:00:00 2001 From: Lukas Hauser Date: Tue, 3 Mar 2026 21:15:44 +0100 Subject: [PATCH 2/2] skip using github_token in any case if not on github.com - required to support bedrock --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 24521bce3..2e6850567 100644 --- a/action.yml +++ b/action.yml @@ -163,7 +163,7 @@ runs: uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # https://github.com/oven-sh/setup-bun/releases/tag/v2.1.2 with: bun-version: 1.3.6 - token: ${{ inputs.github_token || (github.server_url == 'https://github.com' && github.token || '') }} + token: ${{ github.server_url == 'https://github.com' && (inputs.github_token || github.token) || '' }} - name: Setup Custom Bun Path if: inputs.path_to_bun_executable != ''