Skip to content

Commit

Permalink
chore: add double quoting to prevent globbing and word splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
dbelyaev committed Jan 27, 2025
1 parent dafb306 commit afb4edc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}"
# run check
{ echo "Run check with"; java -jar /opt/lib/checkstyle.jar --version; } | sed ':a;N;s/\n/ /;ba'

exec java -jar /opt/lib/checkstyle.jar "${INPUT_WORKDIR}" -c "${INPUT_CHECKSTYLE_CONFIG}" ${OPTIONAL_PROPERTIES_FILE} -f xml \
exec java -jar /opt/lib/checkstyle.jar "${INPUT_WORKDIR}" -c "${INPUT_CHECKSTYLE_CONFIG}" "${OPTIONAL_PROPERTIES_FILE}" -f xml \
| reviewdog -f=checkstyle \
-name="checkstyle" \
-reporter="${INPUT_REPORTER:-github-pr-check}" \
-filter-mode="${INPUT_FILTER_MODE:-added}" \
-fail-level="${INPUT_FAIL_LEVEL:-error}" \
-level="${INPUT_LEVEL}" \
${INPUT_REVIEWDOG_FLAGS} -
"${INPUT_REVIEWDOG_FLAGS}" -

0 comments on commit afb4edc

Please sign in to comment.