Skip to content

Commit e455001

Browse files
committed
Workflows - Token fixed
1 parent 0b0ee35 commit e455001

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/deploy-template.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)