Skip to content

Commit

Permalink
fix: correct env var reference for node
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Mar 22, 2024
1 parent 8860331 commit cc334a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/validate-sgid-index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const scopes = ['https://www.googleapis.com/auth/spreadsheets', 'https://www.goo
let client;
if (process.env.GITHUB_ACTIONS) {
console.log('using ci credentials');
client = auth.fromJSON(JSON.parse(import.meta.env.GOOGLE_PRIVATE_KEY));
client = auth.fromJSON(JSON.parse(process.env.GOOGLE_PRIVATE_KEY));
client.scopes = scopes;
} else {
client = new GoogleAuth({
Expand Down

0 comments on commit cc334a8

Please sign in to comment.