Commit 6e45dc11 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch '29-tfsec-report-in-json-format' into 'master'

feat: add JSON format for TFSec output

Closes #29

See merge request to-be-continuous/terraform!32
parents b3435885 34c8f413
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -575,11 +575,9 @@ tf-tfsec:
    - cd "$TF_PROJECT_DIR"
    - mkdir -p reports
  script:
    - |
      if ! tfsec ${TRACE+--verbose} $TF_TFSEC_ARGS
      then
        tfsec --format junit --out "reports/tfsec.xml" $TF_TFSEC_ARGS
      fi
    - tfsec --format junit --out "reports/tfsec.xml" $TF_TFSEC_ARGS || true
    - tfsec --format json --out "reports/tfsec.json" $TF_TFSEC_ARGS || true
    - tfsec ${TRACE+--verbose} $TF_TFSEC_ARGS 
  artifacts:
    name: "$CI_JOB_NAME artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
    reports: