actions-marketplace-validations/Setup Bun

Download, install, and setup Bun to your path.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Mar 14, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions-marketplace-validations/xhyrom_setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # no releases — HEAD as of 2026-07-12

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
bun-versionThe version of Bun to install. (e.g. "latest", "canary", "1.0.0", "1.0.x", <sha>)no
bun-version-fileThe version of Bun to install from file. (e.g. "package.json", ".bun-version", ".tool-versions")no
bun-download-urlOverride the URL to download Bun from. This skips version resolution and verifying AVX2 support.no
registriesList of package registries with authentication support. Format: - Default registry: https://registry.npmjs.org/ - Default with token: https://registry.npmjs.org/|token - Scoped registry: @scope:https://registry.example.com/ - Scoped with token: @scope:https://registry.example.com/|token - Scoped with credentials: @scope:https://user:pass@registry.example.com/ no
registry-urlThe URL of the package registry to use for installing Bun. Set the $BUN_AUTH_TOKEN environment variable to authenticate with the registry.no
scopeThe scope for authenticating with the package registry.no
no-cacheDisable caching of bun executable.nofalse
tokenPersonal 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.no${{ github.server_url == 'https://github.com' && github.token || '' }}
namedescription
bun-versionThe version of Bun that was installed.
bun-revisionThe revision of Bun that was installed.
bun-pathThe path to the Bun executable.
bun-download-urlThe URL from which Bun was downloaded.
cache-hitIf the version of Bun was cached.