Skip to content

Commit 3d26778

Browse files
authored
fix: default token only on public github (#157)
* fix: default token only on public github * docs: document token
1 parent db6bcf6 commit 3d26778

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ inputs:
4141
description: Disable caching of bun executable.
4242
token:
4343
required: false
44-
default: ${{ github.token }}
45-
description: Personal access token (PAT) used to fetch tags from oven-sh/bun repository. Recommended for resolving wildcard/range versions to avoid GitHub API rate limiting.
44+
default: ${{ github.server_url == 'https://github.com' && github.token || '' }}
45+
description: Personal access token (PAT) used to fetch tags from oven-sh/bun repository. Recommended for resolving wildcard/range versions to avoid GitHub API rate limiting. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting.
4646

4747
outputs:
4848
bun-version:

0 commit comments

Comments
 (0)