Skip to content

Commit 6f9bb2c

Browse files
committed
test: bypass
1 parent 93aa81d commit 6f9bb2c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/db-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 }}

api/src/scripts/load_dataset_on_create.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from database_gen.sqlacodegen_models import Feed
99
from google.cloud import pubsub_v1
1010
from google.cloud.pubsub_v1.futures import Future
11+
from google.auth import default
1112

1213
env = os.getenv("ENV", "dev")
1314
pubsub_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

0 commit comments

Comments
 (0)