From 4296b7d486628ad944f6d340fc0ca6fdc38d50e7 Mon Sep 17 00:00:00 2001 From: Stephen Taylor Date: Fri, 4 Feb 2022 08:18:36 -0700 Subject: [PATCH] Use bandit 1.7.1 to avoid Python version issues The following error is appearing when the bandit playbook is used: bandit requires Python '>=3.7' but the running Python is 3.6.9 This change specifies bandit 1.7.1 in the playbook, which is compatible with Python 3.5+ Change-Id: I3b43ed6de3a90af49cfc7124fdee542831f73f40 --- playbooks/osh-infra-bandit.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/osh-infra-bandit.yaml b/playbooks/osh-infra-bandit.yaml index 65ee76d68..e39dcdd6b 100644 --- a/playbooks/osh-infra-bandit.yaml +++ b/playbooks/osh-infra-bandit.yaml @@ -8,7 +8,7 @@ set -xe; ./tools/deployment/common/000-install-packages.sh ./tools/deployment/common/005-deploy-k8s.sh - sudo -H pip3 install yq bandit + sudo -H pip3 install yq bandit==1.7.1 setuptools environment: zuul_site_mirror_fqdn: "{{ zuul_site_mirror_fqdn }}" args: