4134023ab8
Setting up the bandit tool for the scanning of HIGH severity issues in the python codes under Starlingx/stx-puppet folder. Expecting this merge will enable zuul job for CI/CD of bandit scan. Configuration files: 1. tox.ini for adding bandit environment and command. 2. test-requirements.txt for adding bandit version. 3. .zuul.yaml file for adding bandit job and configuring under check job to run code scan every time before code commit. Test: Run tox -e bandit command inside the fault folder to validate the bandit scan and result. Story: 2007541 Task: 39687 Depends-On: https://review.opendev.org/#/c/721294/ Change-Id: I2982268db2b5e75feeb287bc95420fedc9b0d816 Signed-off-by: Sharath Kumar K <sharath.kumar@intel.com>
117 lines
6.9 KiB
YAML
117 lines
6.9 KiB
YAML
---
|
|
- project:
|
|
templates:
|
|
- stx-bandit-jobs
|
|
check:
|
|
jobs:
|
|
- stx-puppet-linters
|
|
- openstack-tox-pep8
|
|
- openstack-tox-pylint
|
|
gate:
|
|
jobs:
|
|
- stx-puppet-linters
|
|
- openstack-tox-pep8
|
|
- openstack-tox-pylint
|
|
post:
|
|
jobs:
|
|
- stx-stx-puppet-upload-git-mirror
|
|
|
|
- job:
|
|
name: stx-puppet-linters
|
|
parent: openstack-tox-linters
|
|
description: |
|
|
Run linters for stx-puppet
|
|
pre-run: playbooks/tox-puppet-lint/pre.yaml
|
|
|
|
- job:
|
|
name: stx-stx-puppet-upload-git-mirror
|
|
parent: upload-git-mirror
|
|
description: >
|
|
Mirrors opendev.org/starlingx/stx-puppet to
|
|
github.com/starlingx/stx-puppet
|
|
vars:
|
|
git_mirror_repository: starlingx/stx-puppet
|
|
secrets:
|
|
- name: git_mirror_credentials
|
|
secret: stx-stx-puppet-github-secret
|
|
pass-to-parent: true
|
|
|
|
- secret:
|
|
name: stx-stx-puppet-github-secret
|
|
data:
|
|
user: git
|
|
host: github.com
|
|
# yamllint disable-line rule:line-length
|
|
host_key: github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEI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