Skip to content

v0.1.2

Latest

Choose a tag to compare

@ananay ananay released this 11 Jun 19:53
· 2 commits to main since this release

Bug fix

Fixed a startup crash when running openhack from a directory containing a .env file with keys the scanner doesn't define.

Because openhack scans arbitrary target repositories, a target's .env could carry unrelated keys (e.g. gemini_sandbox_proxy_command). pydantic-settings defaults to extra="forbid" and validates every key found in a CWD .env file, so any unknown key aborted the CLI before it started with:

pydantic_core.ValidationError: 1 validation error for Settings
gemini_sandbox_proxy_command
  Extra inputs are not permitted [type=extra_forbidden]

The value was never executed — it only tripped settings validation. Setting extra="ignore" makes openhack skip unrelated keys in a CWD .env (or environment), matching how unknown environment variables were already handled.

Upgrade: pip install --upgrade openhack

Full diff: v0.1.1...v0.1.2