You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Treat empty string same as None (fixes CI with missing secrets)
- Check os.isatty(0) before prompting - return None in non-interactive
environments instead of hanging on getpass
- Update return type to str | None
This fixes the 'httpx.LocalProtocolError: Illegal header value b'Bearer ''
error that occurs when Dependabot PRs run without access to secrets.
ClosesPolicyEngine/policyengine-uk#1479
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
- Handle empty HUGGING_FACE_TOKEN gracefully in CI environments. Empty strings are now treated the same as None, and non-interactive environments (like CI) return None instead of hanging on getpass prompt.
0 commit comments