Skip to content

Conversation

@emilsvennesson
Copy link

@emilsvennesson emilsvennesson commented Jan 14, 2026

Replace oven-sh/setup-bun action with curl-based installation

Problem

This PR fixes bun installation on GitHub Enterprise Server (GHES). On GHES environments, the oven-sh/setup-bun action may not be available at the expected path (it could be synced under a different path like synced-actions/oven-sh/setup-bun).

The current implementation uses oven-sh/setup-bun with a conditional if statement, but GitHub Actions resolves and downloads all referenced actions at workflow parse time, before any conditional logic runs. This causes the action to fail on GHES regardless of the conditional logic.

Changes

  • Replaced oven-sh/setup-bun action with inline curl-based installation in both action.yml and base-action/action.yml
  • Combined the "Install Bun" and "Setup Custom Bun Path" steps into a single "Setup Bun" step
  • The path_to_bun_executable input continues to work for users who want to manage bun installation themselves

Benefits

  • Works on both GitHub.com and GHES without configuration
  • No external action dependencies to sync
  • Same end result (bun gets installed to ~/.bun/bin)
  • Bun installation via curl is fast (~2-3 seconds)

Testing

Tested the shell script logic directly:

  • ✓ Curl installation installs bun 1.2.11 correctly
  • ✓ Custom path logic works correctly when path_to_bun_executable is provided

Closes #618

🤖 Generated with Claude Code

This removes the dependency on oven-sh/setup-bun action which is not
available on GitHub Enterprise Server (GHES) environments.

The bun installation is now done via curl, which works on all GitHub
runners. The path_to_bun_executable input still works for users who
want to manage bun installation themselves.

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dependency on oven-sh/setup-bun

1 participant