Skip to content

Commit

Permalink
reviewdog.sh: remove sarif if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed Nov 9, 2024
1 parent cc33c35 commit b018e6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/reviewdog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ if [ -n "${GITHUB_BASE_REF+set}" ]; then
reviewdog -reporter=sarif -runners=$runner -conf="$SCRIPTPATH/reviewdog/reviewdog.yml" -diff="git diff origin/$GITHUB_BASE_REF" > ../results/$runner.sarif 2>> reviewdog.log || true
grep -H "" reviewdog.$runner.stderr.log >> reviewdog.fail.log || true
[[ ${SEC_ACTION_DEBUG:-false} == 'true' ]] && grep -H "" reviewdog.$runner.stderr.log || true
find ../results/$runner.sarif -type f -empty -delete
done
else
git ls-files | tr '\n' '\0' > $SCRIPTPATH/all_changed_files.txt
Expand Down

0 comments on commit b018e6e

Please sign in to comment.