From 7406014483d6e84608352bbb50b504d379bc72b7 Mon Sep 17 00:00:00 2001 From: Gage Hugo Date: Wed, 13 Feb 2019 10:33:32 -0600 Subject: [PATCH] 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 --- zuul.d/jobs-openstack-helm.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/zuul.d/jobs-openstack-helm.yaml b/zuul.d/jobs-openstack-helm.yaml index 23303cf347..1861277769 100644 --- a/zuul.d/jobs-openstack-helm.yaml +++ b/zuul.d/jobs-openstack-helm.yaml @@ -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