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

Change-Id: Ibcbe1dd2e380f80c4cbf6f2a7cf49065dc890803
Signed-off-by: Sharath Kumar K <sharath.kumar@intel.com>
2020-07-14 15:48:17 +00:00

106 lines
6.6 KiB
YAML

---
- project:
templates:
- stx-bandit-jobs
check:
jobs:
- openstack-tox-linters
gate:
jobs:
- openstack-tox-linters
post:
jobs:
- stx-monitoring-upload-git-mirror
- job:
name: stx-monitoring-upload-git-mirror
parent: upload-git-mirror
description: >
Mirrors opendev.org/starlingx/monitoring to
github.com/starlingx/monitoring
vars:
git_mirror_repository: starlingx/monitoring
secrets:
- name: git_mirror_credentials
secret: stx-monitoring-github-secret
pass-to-parent: true
- secret:
name: stx-monitoring-github-secret
data:
user: git
host: github.com
# yamllint disable-line rule:line-length
host_key: github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5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