We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d93ac21 commit dfd1748Copy full SHA for dfd1748
.github/actions/secrets-parse/action.yml
@@ -32,11 +32,11 @@ runs:
32
if [ -z "$line" ]; then
33
continue
34
fi
35
- key="$(cut -d'=' -f1 <<< "$line")"
36
- json_value="$(cut -d'=' -f2- <<< "$line")"
+ key="${line%%=*}"
+ json_value="${line#*=}"
37
value="$(jq -r '.' <<< "$json_value")"
38
- # Mask the value from the logs
39
- echo "::add-mask::$value"
+ # Mask the value (possibly multiline) from the logs
+ sed 's/^ */::add-mask::/' <<< "$value"
40
{
41
printf "%s<<%s\n" "$key" "$delimiter"
42
printf "%s\n" "$value"
0 commit comments