Skip to content

Commit

Permalink
fix: properly quote output
Browse files Browse the repository at this point in the history
  • Loading branch information
jbergstroem committed Feb 20, 2024
1 parent f969211 commit 60f7f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function run() {
# to how output formatting works.
if [[ -n "${OUTPUT_FORMAT}" ]]; then
OUTPUT=$(eval "${HADOLINT_PATH}" --no-fail --no-color "${CONFIG}" -f "${OUTPUT_FORMAT}" "${DOCKERFILE}")
echo "hadolint_output=${OUTPUT//$'\n'/'%0A'} >> ${GITHUB_OUTPUT}"
echo hadolint_output="${OUTPUT//$'\n'/'%0A'}" >> "${GITHUB_OUTPUT}"
fi

# Eval to remove empty vars
Expand Down

0 comments on commit 60f7f54

Please sign in to comment.