Merge pull request #11813 from hashicorp/revert-11810-hpats/try-curl-for-getting-hcp-access-token-in-hpats

Revert "Try curl for getting HCP Access Token in HPATS"
This commit is contained in:
Jenna Goldstrich
2022-05-26 12:38:35 -07:00
committed by GitHub
+1 -3
View File
@@ -81,9 +81,7 @@ jobs:
git clone [email protected]:hashicorp/hcp-packer-acceptance-tests
cd hcp-packer-acceptance-tests
- name: Set HCP Access Token
run: |
export HCP_ACCESS_TOKEN=$(curl --request POST --header "Content-Type: application/json" --data '{"audience": "https://api.hashicorp.cloud","grant_type": "client_credentials","client_id": "'"$AUTH0_CLIENT_ID"'","client_secret": "'"$AUTH0_CLIENT_SECRET"'"}' "${AUTH0_HOST}/oauth/token" | jq '.access_token' --raw-output)
if [ -z $HCP_ACCESS_TOKEN ]; then; echo "HCP_ACCESS_TOKEN was not set" && exit 1; else echo "HCP_ACCESS_TOKEN set"; fi;
run: export HCP_ACCESS_TOKEN=$(make hcp/get-auth0-m2m-access-token)
- name: Run HPATS
run: make test
# Send a slack notification if one of the jobs defined above fails