gui/.zuul.yaml
Sharath Kumar K 170ac040d2 Tox and Zuul job for the bandit code scan in stx/gui
Setting up the bandit tool for the scanning of HIGH severity issues
in the python codes under Starlingx/gui 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: 39683
Depends-On: https://review.opendev.org/#/c/721294/

Change-Id: I155c9f894f8b1d701f2c75e3e892e6b83a35b11e
Signed-off-by: Sharath Kumar K <sharath.kumar@intel.com>
2020-06-04 14:13:28 +00:00

130 lines
7.1 KiB
YAML

---
- project:
templates:
- publish-stx-docs
- stx-release-notes-jobs
- stx-bandit-jobs
check:
jobs:
- openstack-tox-pep8
- openstack-tox-linters
- stx-gui-pylint
gate:
jobs:
- openstack-tox-pep8
- openstack-tox-linters
- stx-gui-pylint
post:
jobs:
- stx-gui-upload-git-mirror
- job:
name: stx-gui-pylint
parent: openstack-tox-pylint
description: Run pylint for stx-gui
vars:
tox_envlist: pylint
tox_environment:
STX_DC_CLIENT: distcloud-client
required-projects:
- starlingx/config
- starlingx/distcloud-client
- starlingx/fault
- starlingx/ha
- starlingx/nfv
- starlingx/update
- starlingx/utilities
- job:
name: stx-gui-upload-git-mirror
parent: upload-git-mirror
description: >
Mirrors opendev.org/starlingx/gui to
github.com/starlingx/gui
vars:
git_mirror_repository: starlingx/gui
secrets:
- name: git_mirror_credentials
secret: stx-gui-github-secret
pass-to-parent: true
- secret:
name: stx-gui-github-secret
data:
user: git
host: github.com
# yamllint disable-line rule:line-length
host_key: github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHh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