Skip to content

Commit 85402c7

Browse files
authored
Add support for GOOGLE_APPLICATION_CREDENTIALS on runners (#166)
1 parent 0333ac2 commit 85402c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

iterative/gcp/provider.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ func getProjectService() (string, *gcp_compute.Service, error) {
296296
return "", nil, errors.New("Couldn't extract the project identifier from the given credentials!")
297297
}
298298

299+
os.Setenv("GOOGLE_APPLICATION_CREDENTIALS_DATA", string(credentials.JSON))
299300
return credentials.ProjectID, service, nil
300301
}
301302

0 commit comments

Comments
 (0)