Skip to content

Commit

Permalink
Update secret used in scipt and use VITE_FIREBASE_API_KEY instead of …
Browse files Browse the repository at this point in the history
…API_KEY
  • Loading branch information
jeffplays2005 committed Oct 5, 2024
1 parent 87d32a9 commit fc82026
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/update_google_sheet_members.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ env:
GOOGLE_SHEET_ID: ${{secrets.GOOGLE_SHEET_ID}}
GOOGLE_SERVICE_ACCOUNT_JSON: ${{secrets.GOOGLE_SERVICE_ACCOUNT_JSON}}
VITE_BACKEND_BASE_URL: ${{secrets.VITE_BACKEND_BASE_URL}}
API_KEY: ${{secrets.VITE_FIREBASE_API_KEY}}

jobs:
update_google_sheet_members:
Expand Down
4 changes: 3 additions & 1 deletion server/tooling/update-google-sheet-members.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ async function getAllUsers(token: string): Promise<CombinedUserData[]> {
* @returns The google auth client
*/
async function authenticateGoogle(): Promise<any> {
const { client_email, private_key } = JSON.parse(process.env.GOOGLE_API_JSON)
const { client_email, private_key } = JSON.parse(
process.env.GOOGLE_SERVICE_ACCOUNT_JSON
)
const auth = new google.auth.GoogleAuth({
credentials: {
client_email,
Expand Down

0 comments on commit fc82026

Please sign in to comment.