fix: default token only on public github (#157)

* fix: default token only on public github

* docs: document token
This commit is contained in:
Jozef Steinhübl
2026-01-16 15:46:22 +01:00
committed by GitHub
parent db6bcf6eb8
commit 3d267786b1

View File

@@ -41,8 +41,8 @@ inputs:
description: Disable caching of bun executable. description: Disable caching of bun executable.
token: token:
required: false required: false
default: ${{ github.token }} default: ${{ github.server_url == 'https://github.com' && github.token || '' }}
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. 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.
outputs: outputs:
bun-version: bun-version: