Unverified Commit 8c79ceb5 authored by GridexX's avatar GridexX
Browse files

Merge branch '638-fix-rego-policy-directory-tfsec' into 'latest'

Resolve "[Fix] - Rego policy directory tfsec"

Closes #638

See merge request r2devops/hub!400
parents 2dc52d6a 73f10103
Loading
Loading
Loading
Loading
+3 −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