Skip to content

Commit

Permalink
Update check_for_updates.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
amckenna41 authored May 30, 2024
1 parent 9343055 commit d4b0411
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/check_for_updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ jobs:
- uses: actions/checkout@v4 #checkout repo
- uses: google-github-actions/auth@v0
with:
# workload_identity_provider: '${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER}}'
workload_identity_provider: 'projects/732211363570/locations/global/workloadIdentityPools/cloud-run/providers/github'
workload_identity_provider: '${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER}}'
service_account: ${{ secrets.GCP_SA_EMAIL }}
create_credentials_file: true
activate_credentials_file: true
Expand All @@ -35,19 +34,19 @@ jobs:
- name: Export CLOUDSDK_PYTHON
run: export CLOUDSDK_PYTHON="/usr/bin/python3"

#setup and authenticate GCP SDK
- name: Setup gcloud
uses: google-github-actions/setup-gcloud@v0.2.0
with:
# service_account_email: ${{ secrets.GCP_SA_EMAIL }}
# service_account_key: ${{ secrets.GCP_SA_KEY }}
project_id: ${{ secrets.GCP_PROJECT }}
# export_default_credentials: true
#
# #setup and authenticate GCP SDK
# - name: Setup gcloud
# uses: google-github-actions/setup-gcloud@v0.2.0
# with:
# # service_account_email: ${{ secrets.GCP_SA_EMAIL }}
# # service_account_key: ${{ secrets.GCP_SA_KEY }}
# project_id: ${{ secrets.GCP_PROJECT }}
# # export_default_credentials: true
# #

- name: 'gcloud login'
run: |-
gcloud auth login --brief --cred-file=$GOOGLE_APPLICATION_CREDENTIALS | Y
# - name: 'gcloud login'
# run: |-
# gcloud auth login --brief --cred-file=$GOOGLE_APPLICATION_CREDENTIALS | Y

#setup and authenticate GCP SDK
# - name: Setup gcloud
Expand Down Expand Up @@ -75,3 +74,4 @@ jobs:
gcloud run services delete ${{ secrets.GCP_CLOUD_RUN_NAME }}
#https://github.com/google-github-actions/auth/blob/main/docs/TROUBLESHOOTING.md
#https://cloud.google.com/blog/products/identity-security/enabling-keyless-authentication-from-github-actions

0 comments on commit d4b0411

Please sign in to comment.