From 3d267786b128fe76c2f16a390aa2448b815359f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Fri, 16 Jan 2026 15:46:22 +0100 Subject: [PATCH] fix: default token only on public github (#157) * fix: default token only on public github * docs: document token --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index daaae6f..a20de9a 100644 --- a/action.yml +++ b/action.yml @@ -41,8 +41,8 @@ inputs: description: Disable caching of bun executable. token: required: false - default: ${{ 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. + 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. 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: bun-version: