Only run bandit when changing python content

This changes the gate check for bandit to only run when either python
or templated python files are edited. This will cause the check
to only be ran when those specific file types are edited, and to
skip the check when not needed.

Change-Id: I149ef6827ca10e32492f2b05beb8a13af5a03fc5
This commit is contained in:
Gage Hugo 2019-02-13 10:33:32 -06:00
parent 66ba0be81c
commit 7406014483
1 changed files with 3 additions and 7 deletions

View File

@ -30,13 +30,9 @@
run: tools/gate/playbooks/osh-bandit.yaml
required-projects:
- openstack/openstack-helm-infra
# NOTE(gagehugo): Look into only running this for py.tpl file changes
# files:
# - ^.*\.py\.tpl$
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- ^releasenotes/.*$
files:
- ^.*\.py\.tpl$
- ^.*\.py$
- job:
name: openstack-helm-chart-deploy