• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 20027588429 / 1
60%
main: 60%

Build:
DEFAULT BRANCH: main
Ran 08 Dec 2025 12:11PM UTC
Files 394
Run time 13s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Dec 2025 12:09PM UTC coverage: 49.596% (-0.2%) from 49.821%
20027588429.1

push

github

web-flow
Add build auth file injection for protocol builds (#2909)

* Add build auth file injection for protocol builds

Add support for injecting authentication files (npmrc, netrc, yarnrc)
into container builds for protocol schemes (npx://, uvx://, go://).

This solves the problem that NPM registry-scoped authentication cannot
be configured via environment variables because the format
(//registry.example.com/:_authToken=TOKEN) contains characters that
are invalid as environment variable names.

Key features:
- New CLI commands: set-build-auth-file, get-build-auth-file, unset-build-auth-file
- Files are injected into the builder stage only and NOT included in
  the final container image for security
- Supports npmrc (npm/npx), netrc (pip/Go), and yarnrc (Yarn)
- Credentials are hidden by default in CLI output (use --show-content
  to display)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Add CLI documentation for build auth file commands

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Add --stdin flag to read auth file content from stdin

This avoids exposing secrets in shell history and process listings.

Examples:
  cat ~/.npmrc | thv config set-build-auth-file npmrc --stdin
  thv config set-build-auth-file npmrc --stdin < ~/.npmrc

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Store build auth file content in encrypted secrets

Refactor build auth file storage to use ToolHive's encrypted secrets
provider instead of storing credentials in plain text config files.

- Config now stores only markers (e.g., "secret:BUILD_AUTH_FILE_npmrc")
- Actual content stored in keyring/encrypted secrets provider
- CLI commands updated to use secrets manager for storage/retrieval
- protocol.go resolves secrets at build time
- Updated interface methods and all provider implem... (continued)

26405 of 53240 relevant lines covered (49.6%)

58.9 hits per line

Source Files on job 20027588429.1
  • Tree
  • List 394
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 20027588429
  • b15418b8 on github
  • Prev Job for on main (#20025225801.1)
  • Next Job for on main (#20029992673.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc