Skip to content

Commit

Permalink
workaround for #95
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Sep 8, 2023
1 parent cf10e8c commit 3737d0e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ echo '::group:: Running tfsec with reviewdog 🐶 ...'

# shellcheck disable=SC2086
"${TFSEC_PATH}/tfsec" --format=json ${INPUT_TFSEC_FLAGS:-} . \
| {
# workaround for #95
# remove "tfsec is joining the Trivy family" banner
jq --slurp --raw-input --raw-output 'gsub("^[^{]*"; "")'
} \
| jq -r -f "${GITHUB_ACTION_PATH}/to-rdjson.jq" \
| "${REVIEWDOG_PATH}/reviewdog" -f=rdjson \
-name="tfsec" \
Expand Down

0 comments on commit 3737d0e

Please sign in to comment.