From 2856a458e84413a30103e78a4e481818e8e2906b Mon Sep 17 00:00:00 2001 From: Ricardo N Feliciano Date: Thu, 2 Feb 2023 21:38:25 -0500 Subject: [PATCH] Add flag support to audit job (#3) --- src/jobs/audit.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/jobs/audit.yml b/src/jobs/audit.yml index 652f683..1598ab4 100644 --- a/src/jobs/audit.yml +++ b/src/jobs/audit.yml @@ -4,10 +4,18 @@ parameters: version: description: The Warden version. This is a full SemVer version. type: string - config: - description: Path to the Warden file. + group: + description: Which repository group to audit. type: string - default: ./warden.yml + default: all + repositoriesFile: + description: Path to the repositories.yml file. + type: string + default: ./repositories.yml + policyFile: + description: Path to the policy.yml file. + type: string + default: ./policy.yml docker: - image: cimg/base:2023.01 @@ -19,4 +27,4 @@ steps: - run: name: "Run an audit" command: | - warden audit + warden audit --group=<< parameters.group >> --repositoriesFile=<< parameters.repositoriesFile >> --policyFile=<< parameters.policyFile >>