Skip to content

Commit ff97917

Browse files
authored
Default token only on public github instance (copied from oven-sh/setup-bun#157)
1 parent 7336720 commit ff97917

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ runs:
163163
uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # https://github.com/oven-sh/setup-bun/releases/tag/v2.1.2
164164
with:
165165
bun-version: 1.3.6
166-
token: ${{ inputs.github_token || github.token }}
166+
token: ${{ inputs.github_token || (github.server_url == 'https://github.com' && github.token || '') }}
167167

168168
- name: Setup Custom Bun Path
169169
if: inputs.path_to_bun_executable != ''

0 commit comments

Comments
 (0)