Skip to content

Commit 86c394b

Browse files
Aaron Suarezapex-omontgomery
Aaron Suarez
authored andcommitted
Add security checks
1 parent 533cf8b commit 86c394b

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

.bandit

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[bandit]
2+
exclude: /tests

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ script:
2929
- make build
3030
- make test
3131
- make lint
32+
- make bandit
3233
after_success:
3334
- bash bin/run.sh
3435
after_script:

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ test-coverage:
5555
lint:
5656
${DOCKER_COMPOSE} run ${RESOURCES_CONTAINER} flake8 app --statistics --count
5757

58+
.PHONY: bandit
59+
bandit:
60+
${DOCKER_COMPOSE} run ${RESOURCES_CONTAINER} bandit -r .
61+
5862
.PHONY: help
5963
help: build
6064
${DOCKER_COMPOSE} run ${RESOURCES_CONTAINER} ${FLASK} --help

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ pytest-mock==1.10.1
77
pyyaml==5.1
88
requests==2.21.0
99
SQLAlchemy-Utils==0.33.11
10+
bandit==1.5.1

0 commit comments

Comments
 (0)