From aa0ee44de8bb7018427de492ce216b4c3797bd36 Mon Sep 17 00:00:00 2001 From: Jayana Gunaweera <79576139+JayanaGunaweera01@users.noreply.github.com> Date: Thu, 29 Jun 2023 09:48:49 +0530 Subject: [PATCH] Update migration-script-ubuntu.sh --- .../migration-automation/ubuntu-os/migration-script-ubuntu.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/migration-tester/migration-automation/ubuntu-os/migration-script-ubuntu.sh b/.github/migration-tester/migration-automation/ubuntu-os/migration-script-ubuntu.sh index b2f2a5b5fd..5d0bce32a6 100644 --- a/.github/migration-tester/migration-automation/ubuntu-os/migration-script-ubuntu.sh +++ b/.github/migration-tester/migration-automation/ubuntu-os/migration-script-ubuntu.sh @@ -94,8 +94,7 @@ response=$(curl --location --request POST 'https://oauth2.googleapis.com/token' --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode "client_id=$gcpClientId" \ --data-urlencode "client_secret=$gcpClientSecret" \ ---data-urlencode "refresh_token=$gcpRefreshToken" \ ---data-urlencode 'grant_type=refresh_token') +--data-urlencode 'grant_type=client_credentials') # Extract the access token from the response using jq access_token=$(echo "$response" | jq -r '.access_token')