Skip to content

Commit e45ec2d

Browse files
authored
Merge pull request #123 from philsch/credentials_env_support
support GOOGLE_APPLICATION_CREDENTIALS env variable
2 parents b5ca732 + ed64ce8 commit e45ec2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

provider/googleProvider.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ class GoogleProvider {
6161
}
6262

6363
getAuthClient() {
64-
let credentials = this.serverless.service.provider.credentials;
64+
let credentials = this.serverless.service.provider.credentials
65+
|| process.env.GOOGLE_APPLICATION_CREDENTIALS;
6566
const credParts = credentials.split(path.sep);
6667

6768
if (credParts[0] === '~') {

0 commit comments

Comments
 (0)