Unverified Commit 73f10103 authored by GridexX's avatar GridexX
Browse files

fix(tfsec): verify existence of rego policy directory



Signed-off-by: default avatarGridexX <arsene582@gmail.com>
parent 2dc52d6a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
# Changelog
All notable changes to this job will be documented in this file.

## [0.1.1] - 2022-09-19
* Check existence of the rego policy directory
## [0.1.0] - 2022-09-09
* Initial version
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ tfsec:

    - SEVERITY_OPTION="-m ${TFSEC_MIN_SEVERITY}"
    - REGO_OPTION=""
    - if [ ! -z ${TFSEC_REGO_DIR} ]; then
    - if [ ! -z ${TFSEC_REGO_DIR} ] && [ -d ${TFSEC_REGO_DIR} ]; then
    -   REGO_OPTION="--rego-policy-dir ${TFSEC_REGO_DIR}"
    - fi