Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Application Default Credential if gcp.credential is absent #1585

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
bugfix
  • Loading branch information
rhase committed May 27, 2021
commit 814cbc5b465856ec06c31d764d8b1c809b5ac4b7
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ GcpCredential credential(SecretProvider secrets)
builder.projectId(ServiceOptions.getDefaultProjectId())
.credential(GoogleCredential.getApplicationDefault());
}
catch (IOException e) {
catch (Exception e) {
throw new TaskExecutionException(
"Could not get google cloud credential: need gcp.credential secret or Application Default Credentials",
e
Expand Down