Skip to content

Commit

Permalink
Add support for GOOGLE_APPLICATION_CREDENTIALS on runners (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 authored Jul 21, 2021
1 parent 0333ac2 commit 85402c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions iterative/gcp/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ func getProjectService() (string, *gcp_compute.Service, error) {
return "", nil, errors.New("Couldn't extract the project identifier from the given credentials!")
}

os.Setenv("GOOGLE_APPLICATION_CREDENTIALS_DATA", string(credentials.JSON))
return credentials.ProjectID, service, nil
}

Expand Down

0 comments on commit 85402c7

Please sign in to comment.