Skip to content

Commit dfd1748

Browse files
committed
WIP
1 parent d93ac21 commit dfd1748

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/actions/secrets-parse/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ runs:
3232
if [ -z "$line" ]; then
3333
continue
3434
fi
35-
key="$(cut -d'=' -f1 <<< "$line")"
36-
json_value="$(cut -d'=' -f2- <<< "$line")"
35+
key="${line%%=*}"
36+
json_value="${line#*=}"
3737
value="$(jq -r '.' <<< "$json_value")"
38-
# Mask the value from the logs
39-
echo "::add-mask::$value"
38+
# Mask the value (possibly multiline) from the logs
39+
sed 's/^ */::add-mask::/' <<< "$value"
4040
{
4141
printf "%s<<%s\n" "$key" "$delimiter"
4242
printf "%s\n" "$value"

0 commit comments

Comments
 (0)