Problem
The pre-push hook's security:sast semgrep scan flags a pre-existing finding in agent/src/config.py:165:
python.lang.security.audit.dynamic-urllib-use-detected.dynamic-urllib-use-detected
Detected a dynamic value being used with urllib. urllib supports 'file://' schemes, so a dynamic value controlled by a malicious actor may allow them to read arbitrary files.
This blocks git push for any branch, even when the change is unrelated to this file.
Context
Acceptance criteria
Labels
bug, good first issue
Problem
The pre-push hook's
security:sastsemgrep scan flags a pre-existing finding inagent/src/config.py:165:This blocks
git pushfor any branch, even when the change is unrelated to this file.Context
# noqa: S310bandit suppressionmainpasses — the pre-push hook is stricter than CI's semgrep config08b91bf(PR feat(linear): OAuth migration with per-workspace token storage (Phase 2.0b) #160, Linear OAuth migration)Acceptance criteria
# nosemgrep: python.lang.security.audit.dynamic-urllib-use-detected.dynamic-urllib-use-detectedinline comment at line 165mise run security:sastpasses cleanlyLabels
bug,good first issue