From c25367d95cf0cc3f4a6841d5178418ba4c695dd4 Mon Sep 17 00:00:00 2001 From: Iain Learmonth Date: Mon, 16 May 2022 12:03:24 +0100 Subject: [PATCH] ci: add bandit job --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a44ba6d..39c9d8b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,13 @@ image: python:3.8-bullseye +test:bandit: + script: + - cp config.yaml.example config.yaml + - apt update && apt install build-essential + - pip install -r requirements.txt --quiet + - pip install bandit --quiet + - bandit -r app + test:mypy: script: - cp config.yaml.example config.yaml