Skip to content

Commit

Permalink
Update bandit configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
petarnikolovski committed Sep 11, 2021
1 parent a408df3 commit c38644e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .bandit

This file was deleted.

14 changes: 14 additions & 0 deletions .bandit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
skips:
# [B404:blacklist]
# subprocess is the integral part of the project
- B404
# [B701:jinja2_autoescape_false]
# narrenschiff should not be vulnerable to XSS attack: courses and templated
# manifests are not parsed to HTML. Even if one of the variables contains
# HTML it may be some custom file that is mounted through a ConfigMap - if
# user needs HTML in that case, they probably need it unescaped.
- B701

try_except_pass:
check_typed_exception: False
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ pipenv:
flake8:
$(RUN) flake8 .

.PHONY: bandit
bandit:
$(RUN) bandit -c .bandit.yaml -r narrenschiff/

.PHONY: test
test:
$(RUN) coverage run -m unittest discover
Expand Down

0 comments on commit c38644e

Please sign in to comment.