File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ jobs:
136136 env :
137137 APIGEE_USERNAME : ${{ vars.APIGEE_USERNAME }}
138138 APIGEE_PASSWORD : ${{ secrets.APIGEE_PASSWORD }}
139- APIGEE_OAUTH_TOKEN : ${{ secrets.APIGEE_OAUTH_TOKEN }}
139+ APIGEE_OAUTH_TOKEN : ${{ secrets.APIGEE_BASIC_AUTH_TOKEN }}
140140 APIGEE_OTP_SECRET : ${{ secrets.APIGEE_OTP_KEY }}
141141 run : |
142142 CODE=$(oathtool --totp -b "$APIGEE_OTP_SECRET")
@@ -147,10 +147,9 @@ jobs:
147147 response=$(curl -s -X POST "https://login.apigee.com/oauth/token" \
148148 -H "Content-Type: application/x-www-form-urlencoded" \
149149 -H "Accept: application/json;charset=utf-8" \
150- -H "Authorization: Basic $APIGEE_OAUTH_TOKEN " \
150+ -H "Authorization: Basic $APIGEE_BASIC_AUTH_TOKEN " \
151151 -d "username=$APIGEE_USERNAME&password=$APIGEE_PASSWORD&mfa_token=$CODE&grant_type=password")
152152
153- echo $response
154153 token=$(echo "$response" | jq -e -r '.access_token')
155154
156155 if [[ -z "$token" ]]; then
You can’t perform that action at this time.
0 commit comments