File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ jobs:
224224 if : ${{ github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch' }}
225225 runs-on : ubuntu-latest
226226 steps :
227- - name : Authenticate to Google Cloud QA/PROD
227+ - name : Authenticate to Google Cloud
228228 uses : google-github-actions/auth@v2
229229 with :
230230 credentials_json : ${{ secrets.GCP_MOBILITY_FEEDS_SA_KEY }}
Original file line number Diff line number Diff line change 88from database_gen .sqlacodegen_models import Feed
99from google .cloud import pubsub_v1
1010from google .cloud .pubsub_v1 .futures import Future
11+ from google .auth import default
1112
1213env = os .getenv ("ENV" , "dev" )
1314pubsub_topic_name = f"datasets-batch-topic-{ env } "
@@ -23,6 +24,10 @@ def get_pubsub_client():
2324 global pubsub_client
2425 if pubsub_client is None :
2526 pubsub_client = pubsub_v1 .PublisherClient ()
27+ credentials , project = default ()
28+ logging .info (f"Authenticated project: { project } " )
29+ logging .info (f"Service Account Email: { credentials .service_account_email } " )
30+
2631 return pubsub_client
2732
2833
You can’t perform that action at this time.
0 commit comments