Virts 1106d bandit ci #1539
Merged
Virts 1106d bandit ci #1539
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1539 +/- ##
=======================================
Coverage 54.92% 54.92%
=======================================
Files 46 46
Lines 2895 2895
=======================================
Hits 1590 1590
Misses 1305 1305 Continue to review full report at Codecov.
|
Since this check runs on --all-files, it was causing to run on files that should be ignored (tests/) and failing the pipeline. Also, remove .bandit file and just use cli args.
christophert
requested changes
Apr 17, 2020
christophert
approved these changes
Apr 17, 2020
Changes look good!
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.


WIP because CI should fail until: #1535 #1540 makes it in (hardcoded binding to 0.0.0.0 is a medium finding)This PR configures bandit to fail pipelines on medium and high severity problems.
Changes:
Add bandit https://bandit.readthedocs.io/en/latest/ to tox configConfigure travis ci to run bandit checksBandit is a nice tool for identifying quality issues in Python code (especially more obvious security issues).
Possible next steps:
plugins/directory. Bandit would definitely be valuable for scanning plugins, but unsure if we want to do this here, or in the plugins themselves.The text was updated successfully, but these errors were encountered: