Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ jobs:
python -m pip install --upgrade "pip>=26.1"
python -m pip install -e ".[dev]"
python -m pip install pip-audit
python -m pip install bandit[toml]

- name: Run pip-audit
run: python -m pip_audit --progress-spinner off

- name: Run Bandit
run: python -m bandit -r forge_cli -q --severity-level medium
3 changes: 2 additions & 1 deletion forge_cli/mcp_sse.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
def main() -> None:
serve_mcp_http(
options_from_env(
default_host="0.0.0.0",
# Legacy private-network wrapper; see module docstring.
default_host="0.0.0.0", # nosec B104
default_port=8765,
allow_remote=True,
disable_dns_rebinding_protection=True,
Expand Down
2 changes: 2 additions & 0 deletions tests/test_ci_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def test_ci_workflow_has_dependency_security_gate() -> None:
assert 'python -m pip install --upgrade "pip>=26.1"' in workflow
assert "python -m pip install pip-audit" in workflow
assert "python -m pip_audit --progress-spinner off" in workflow
assert "python -m pip install bandit[toml]" in workflow
assert "python -m bandit -r forge_cli -q --severity-level medium" in workflow


def test_github_actions_are_pinned_to_commit_shas() -> None:
Expand Down
Loading