Skip to content

Commit

Permalink
Fix globbing in input
Browse files Browse the repository at this point in the history
If an asterisk is used as part of the input jq command it is expanded by the command substitution. If `INPUT_CMD` is double-quoted asterisks inside the jq command get passed on.
  • Loading branch information
norman-zon authored Jun 9, 2022
1 parent 3300077 commit 7d2a945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

OUTPUT=$(eval $INPUT_CMD)
OUTPUT=$(eval "$INPUT_CMD")

# Multiline string handling, per Github Community recommendation:
# https://github.uint.cloudmunity/t/set-output-truncates-multiline-strings/16852/3
Expand Down

0 comments on commit 7d2a945

Please sign in to comment.