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 4f058b3 commit 2beac9fCopy full SHA for 2beac9f
1 file changed
.github/actions/artifactory-oidc/action.yml
@@ -62,7 +62,8 @@ runs:
62
63
if [ -z "$ART_TOKEN" ]; then
64
echo "::error::OIDC token exchange failed."
65
- echo "$RESP" | jq 'if .access_token then .access_token="<redacted>" else . end' 2>/dev/null || echo "$RESP"
+ echo "$RESP" | jq 'walk(if type == "object" then with_entries(if (.key | test("token"; "i")) then .value = "<redacted>" else . end) else . end)' 2>/dev/null \
66
+ || echo "::error::(response withheld — not valid JSON)"
67
exit 1
68
fi
69
echo "::add-mask::$ART_TOKEN"
0 commit comments