File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -214,15 +214,18 @@ jobs:
214214
215215 # Create a properly URL-encoded request
216216 echo "Creating token exchange request..."
217- curl_data=$(cat <<EOF
218- client_id=$IDENTITY_FEDERATION_CLIENT_ID&\
219- subject_token=$OIDC_TOKEN&\
220- subject_token_type=urn:ietf:params:oauth:token-type:jwt&\
221- grant_type=urn:ietf:params:oauth:grant-type:token-exchange&\
222- scope=sql
223- EOF
217+ curl_data=$(cat << ' EOF'
218+ client_id=$IDENTITY_FEDERATION_CLIENT_ID&\
219+ subject_token=$OIDC_TOKEN&\
220+ subject_token_type=urn:ietf:params:oauth:token-type:jwt&\
221+ grant_type=urn:ietf:params:oauth:grant-type:token-exchange&\
222+ scope=sql
223+ EOF
224224 )
225225
226+ # Substitute environment variables in the curl data
227+ curl_data=$(eval echo "$curl_data")
228+
226229 # Print request details (except the token)
227230 echo "Request URL: https://$DATABRICKS_HOST/oidc/v1/token"
228231 echo "Request data: $(echo "$curl_data" | sed 's/subject_token=.*&/subject_token=REDACTED&/')"
You can’t perform that action at this time.
0 commit comments