Skip to content

Commit

Permalink
Update google.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ab77 authored Jan 23, 2024
1 parent c47af3e commit 24ca179
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/google.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)"

0 comments on commit 24ca179

Please sign in to comment.