diff --git a/.github/workflows/google.yml b/.github/workflows/google.yml index f53aa31..42a97fe 100644 --- a/.github/workflows/google.yml +++ b/.github/workflows/google.yml @@ -17,23 +17,13 @@ jobs: with: project_id: savvy-container-267322 workload_identity_provider: projects/47855944311/locations/global/workloadIdentityPools/github/providers/oidc - token_format: access_token - create_credentials_file: 'true' service_account: my-service-account@savvy-container-267322.iam.gserviceaccount.com - uses: google-github-actions/setup-gcloud@v2 - - run: | set -x - echo 'project_id: ${{ steps.auth.outputs.project_id }}' - echo 'credentials_file_path: ${{ steps.auth.outputs.credentials_file_path }}' - echo 'auth_token: ${{ steps.auth.outputs.auth_token }}' - echo 'access_token: ${{ steps.auth.outputs.access_token }}' - echo 'id_token: ${{ steps.auth.outputs.id_token }}' - - gcloud info gcloud auth list - curl https://admin.googleapis.com/admin/directory/v1/users \ - --header 'Authorization: Bearer ${{ steps.auth.outputs.access_token }}' + curl https://admin.googleapis.com/admin/directory/v1/users?customer=C01jv3tsi \ + --header "Authorization: Bearer $(gcloud auth print-access-token)"