Repository navigation
ci: bump bandit to 1.9.4 for Python 3.14 - #247
Merged
Merged
Conversation
bandit 1.8 reads ast.Num, which Python 3.14 removed: every plugin raises an internal error on every file while the step stays green, so nothing is scanned. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@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.
Goal
Make bandit actually scan code on Python 3.14.
Why
bandit 1.8.x reads
ast.Num, which Python 3.14 removed. On a 3.14 job every plugin logsmodule 'ast' has no attribute 'Num'on every file and the step still passes, so nothing is scanned (seen on certego/babel#33).How
bandit~=1.8.3→bandit~=1.9.4inconfigurations/python_linters/requirements-linters.txtand in its self-test copy under.github/.bandit 1.9.4on Python 3.14.10 against the babel source: no internal errors.Out of scope
python -m unittest discoverexits 5 on Python ≥ 3.12 when a repo has no tests. Repos are expected to ship a test, so it isn't handled here.🤖 Generated with Claude Code