Skip to content

Commit 5093612

Browse files
committed
add service email as a variable
1 parent ad1e78b commit 5093612

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

workflows/gtfs_validator_execution.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ main:
2222
# Extracts the environment from the project ID. Ex: mobility-feeds-prod -> prod. Values: prod, qa, dev
2323
- environment: ${text.split(projectID, "-")[2]}
2424
- cloudTaskName: ${"cloud-tasks-2x-rate-queue-" + environment}
25+
- serviceAccountEmail: ${"workflows-service-account@mobility-feeds-" + environment + ".iam.gserviceaccount.com"}
2526
- url: ${"https://storage.googleapis.com/" + datasetsBucket + "/" + feedID + "/" + datasetID + "/" + datasetID + ".zip"}
2627
- headers:
2728
Content-Type: application/json
@@ -241,7 +242,7 @@ main:
241242
url: ${"https://" + region + "-" + projectID + ".cloudfunctions.net/process-validation-report"}
242243
httpMethod: POST
243244
oidcToken:
244-
serviceAccountEmail: "workflows-service-account@mobility-feeds-dev.iam.gserviceaccount.com"
245+
serviceAccountEmail: ${serviceAccountEmail}
245246
body: ${payloadTaskBase64}
246247
headers:
247248
Content-Type: application/json

0 commit comments

Comments
 (0)