Skip to content

Commit

Permalink
fix(env): use GH_TOKEN to avoid github reserved secret keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
mdluo committed Aug 15, 2020
1 parent 7502385 commit f6ae844
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ GOODREADS_USER_ID=
# BOOKS_SORT_BY=date
# BOOKS_SORT_BY=percent

GITHUB_TOKEN=
GH_TOKEN=
GIST_ID=
2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Octokit } from '@octokit/rest';

dotenv.config();

const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });
const octokit = new Octokit({ auth: process.env.GH_TOKEN });

const request = got.extend({
prefixUrl: 'https://www.goodreads.com',
Expand Down

0 comments on commit f6ae844

Please sign in to comment.