Skip to content

Commit 27143cf

Browse files
committed
fix(gsc-report): convert escaped newlines in private key
1 parent ddbeb1b commit 27143cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bots/gsc-report/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const auth = new google.auth.GoogleAuth({
88
scopes: ['https://www.googleapis.com/auth/webmasters.readonly'],
99
credentials: {
1010
client_email: process.env.GOOGLE_CLIENT_EMAIL,
11-
private_key: process.env.GOOGLE_PRIVATE_KEY,
11+
private_key: process.env.GOOGLE_PRIVATE_KEY.replace(/\\n/g, '\n'),
1212
}
1313
});
1414

0 commit comments

Comments
 (0)