fix: add bandit SAST + pip-audit to CI, fix assert in production code#20
Merged
devonartis merged 1 commit intodevelopfrom Apr 17, 2026
Merged
fix: add bandit SAST + pip-audit to CI, fix assert in production code#20devonartis merged 1 commit intodevelopfrom
devonartis merged 1 commit intodevelopfrom
Conversation
- Replace assert with AgentWritError raise in orchestrator.py:83 (bandit B101: assert stripped by python -O) - Add bandit SAST gate to CI — scans src/ for security issues - Add pip-audit gate to CI — checks deps against vulnerability DBs - Upgrade 4 vulnerable deps: cryptography 46.0.5→46.0.7, pygments 2.19.2→2.20.0, pytest 9.0.2→9.0.3, python-multipart 0.0.24→0.0.26 Closes #19 Refs devonartis/agentwrit#31 Generated with Claude Code Harness Agent Co-Authored-By: Claude <claude@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/for Python security issues (new CI gate)orchestrator.py:83usedassertwhich is stripped bypython -O; replaced with explicitAgentWritErrorraiseTest plan
uv run bandit -r src/ -q— clean (0 findings after fix)uv run pip-audit— clean (0 vulnerabilities after upgrades)uv run ruff check .— passuv run mypy --strict src/— passuv run pytest tests/unit/ -q— 99 passCloses #19
Refs devonartis/agentwrit#31
Generated with Claude Code