Skip to content

Commit

Permalink
reviewdog: don't send stderr to slack for pip-audit and tfsec
Browse files Browse the repository at this point in the history
FIXME
  • Loading branch information
Andrea Brancaleoni authored and thypon committed Apr 10, 2024
1 parent 3c6ee96 commit 9975df3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/reviewdog/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ runner:
(xargs -0 -n1 -a $SCRIPTPATH/all_changed_files.txt | grep '\.tf$' | xargs -r -d '\n' dirname | sort -u \
| xargs -r -d '\n' $SCRIPTPATH/tfsec.sh \
| jq -r '.diagnostics[] | "\(.severity[0:1]):\(.location.path):\(.location.range.start.line) \(.message | sub("\n";"<br/>";"g"))<br><br>source: \(.code.url)<br><br>"' \
| $SCRIPTPATH/cleaner.rb) 2> reviewdog.tfsec.stderr.log
| $SCRIPTPATH/cleaner.rb) 2> /dev/null # TODO: reviewdog.tfsec.stderr.log
errorformat:
- "%t:%f:%l %m"
brakeman:
Expand Down Expand Up @@ -97,6 +97,6 @@ runner:
cmd: |
set -e
(python3 $SCRIPTPATH/pip-audit.py \
| $SCRIPTPATH/cleaner.rb) 2> reviewdog.pip-audit.stderr.log
| $SCRIPTPATH/cleaner.rb) 2> /dev/null # reviewdog.pip-audit.stderr.log
errorformat:
- "%t:%f:%l %m"

0 comments on commit 9975df3

Please sign in to comment.