diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index be4f40c0046885077a9498007fb1d75762334bf4..1bebceb584ebcf2011a68662a66dd3e4843c7ad3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -43,6 +43,9 @@ python_linting:
     - tox -e pep8
 bandit:
   stage: static-analysis
+  before_script:
+    - sudo apt-get update
+    - sudo apt-get install -y git
   script:
     - cd tangostationcontrol
     - tox -e bandit