0a91e260bc
Changed pip to pip3 to address zuul gate issues. Change-Id: I811fdefa258550b569977000e9b974d17e7be333
29 lines
774 B
YAML
29 lines
774 B
YAML
- hosts: all
|
|
name: openstack-helm-bandit
|
|
tasks:
|
|
|
|
- name: Install Required Packages and Setup Host
|
|
shell: |
|
|
set -xe;
|
|
./tools/deployment/common/install-packages.sh
|
|
./tools/deployment/common/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/files/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 }}"
|