Commit 34c8f413 authored by Christophe Mathias's avatar Christophe Mathias Committed by Pierre Smeyers
Browse files

feat: add JSON format for TFSec output

parent b3435885
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: