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

stacklok / toolhive / 19348357725
51%

Build:
DEFAULT BRANCH: main
Ran 13 Nov 2025 10:59PM UTC
Jobs 1
Files 372
Run time 1min
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

13 Nov 2025 10:53PM UTC coverage: 48.38% (+0.02%) from 48.362%
19348357725

push

github

web-flow
Add environment variable support to header_injection auth (#2574)

Adds header_value_env field to header_injection authentication strategy,
enabling secrets to be resolved from environment variables at config load
time instead of hardcoded in YAML files.

Changes:
- Add header_value_env field to rawHeaderInjectionAuth struct
- Implement validation: exactly one of header_value or header_value_env required
- Update token_exchange and service_account to use env.Reader consistently
- Add 6 comprehensive test cases covering all edge cases
- Update documentation and examples to show both usage patterns

This follows the same pattern as token_exchange (client_secret_env) and
service_account (credentials_env) strategies. Environment variables are
resolved at config load time with fail-fast validation.

Backward compatible: existing header_value (literal) configurations
continue to work unchanged.

Example usage:
  outgoing_auth:
    backends:
      github:
        type: header_injection
        header_injection:
          header_name: "Authorization"
          header_value_env: "GITHUB_API_TOKEN"

Fixes: #2573

16 of 16 new or added lines in 1 file covered. (100.0%)

16 existing lines in 2 files now uncovered.

23489 of 48551 relevant lines covered (48.38%)

36.33 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
82.83
-0.55% pkg/transport/proxy/httpsse/http_proxy.go
14
54.74
-10.53% pkg/secrets/keyring/keyctl_linux.go
Jobs
ID Job ID Ran Files Coverage
1 19348357725.1 13 Nov 2025 10:59PM UTC 372
48.38
GitHub Action Run
Source Files on build 19348357725
  • Tree
  • List 372
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19348357725
  • dd1fc844 on github
  • Prev Build on main (#19348351997)
  • Next Build on main (#19348833264)
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

© 2025 Coveralls, Inc