b7d3311649
Changed pip to pip3 to address zuul gate issues. Change-Id: Id265b405b293af5b51b4774ca4c7465c9e9457b6
31 lines
790 B
YAML
31 lines
790 B
YAML
---
|
|
- hosts: all
|
|
name: openstack-helm-infra-bandit
|
|
tasks:
|
|
|
|
- name: Install Required Packages and Setup Host
|
|
shell: |
|
|
set -xe;
|
|
./tools/deployment/common/000-install-packages.sh
|
|
./tools/deployment/common/005-deploy-k8s.sh
|
|
sudo -H pip3 install yq bandit
|
|
environment:
|
|
zuul_site_mirror_fqdn: "{{ zuul_site_mirror_fqdn }}"
|
|
args:
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
|
|
- name: Template out python files
|
|
shell: |
|
|
set -xe;
|
|
make all
|
|
mkdir -p python-files
|
|
./tools/gate/template-python.sh
|
|
args:
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
|
|
- name: Run bandit against python files
|
|
shell: bandit -r ./python-files
|
|
args:
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
...
|