Skip to content

Commit

Permalink
Merge pull request #6843 from freedomofpress/bandit-target
Browse files Browse the repository at this point in the history
Ignore target/ folder from `make bandit`
  • Loading branch information
eaon authored Jun 14, 2023
2 parents cf15bc6 + 9f07c50 commit e22374d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ safety: ## Run `safety check` to check python dependencies for vulnerabilities.
bandit: test-config ## Run bandit with medium level excluding test-related folders.
@command -v bandit || (echo "Please run 'pip install -U bandit'."; exit 1)
@echo "███ Running bandit..."
@bandit -ll --exclude ./admin/.tox,./admin/.venv,./admin/.eggs,./molecule,./testinfra,./securedrop/tests,./.tox,./.venv*,securedrop/config.py --recursive .
@bandit -ll --exclude ./admin/.tox,./admin/.venv,./admin/.eggs,./molecule,./testinfra,./securedrop/tests,./.tox,./.venv*,securedrop/config.py,./target --recursive .
@echo "███ Running bandit on securedrop/config.py..."
@bandit -ll --skip B108 securedrop/config.py
@echo
Expand Down

0 comments on commit e22374d

Please sign in to comment.