CICDL-336: route bun install through internal npm proxy#5
Open
Moser-ss wants to merge 5 commits into
Open
Conversation
…gh proxy registry.npmjs.org is blocked (0.0.0.0) on eks-runner-ai via hostAlias. bun respects the npm_config_registry env var, so setting it on the install step avoids any config file resolution order issues. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
registry.npmjs.org is blocked (0.0.0.0) on eks-runner-ai via hostAlias. using --registry flag is more explicit than env var and scoped to this single command. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…bug) setup-bun writes bunfig.toml to cwd() (workspace root) instead of ~/.bunfig.toml, so the registry config was never picked up by bun install running from the action directory. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
skips setup-bun entirely on runners where bun is pre-installed at this path, avoiding the need to download or install bun. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
kaareloide
approved these changes
May 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On `eks-runner-ai`, a hostAlias redirects `registry.npmjs.org` to `0.0.0.0`, blocking all npm package downloads. This caused two failures:
Solution
Note: the `registries` input on `setup-bun` was attempted but doesn't work due to a bug in `setup-bun`: it writes `bunfig.toml` to `cwd()` (workspace root) instead of `~/.bunfig.toml`, so the config is never picked up by `bun install` running from the action directory.
Test
Verified working in: https://github.com/pipedrive/hal/actions/runs/26518847219/job/78105177087
Test workflow: https://github.com/pipedrive/hal/actions/runs/26518847219/workflow
🤖 Generated with Claude Code