Skip to content

Commit

Permalink
replaces the name GITHUB_SECRET to GH_SECRET because gh was being a b…
Browse files Browse the repository at this point in the history
…aby about it
  • Loading branch information
stolinski committed Sep 22, 2023
1 parent 66eda26 commit 98f73bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/playwright-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: pnpm run test
env:
PUBLIC_GITHUB_ID: ''
GITHUB_SECRET: ''
GH_SECRET: ''
DEEPGRAM_SECRET: ${{ secrets.DEEPGRAM_SECRET }}
PUBLIC_URL: ''
SENTRY_AUTH_TOKEN: ''
Expand Down
4 changes: 2 additions & 2 deletions src/server/auth/access_token.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PUBLIC_GITHUB_ID } from '$env/static/public';
import { GITHUB_SECRET } from '$env/static/private';
import { GH_SECRET } from '$env/static/private';
const tokenURL = 'https://github.com/login/oauth/access_token';

export async function get_access_token(code: string): Promise<string> {
Expand All @@ -9,7 +9,7 @@ export async function get_access_token(code: string): Promise<string> {
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
body: JSON.stringify({
client_id: PUBLIC_GITHUB_ID,
client_secret: GITHUB_SECRET,
client_secret: GH_SECRET,
code
})
});
Expand Down

0 comments on commit 98f73bb

Please sign in to comment.