Skip to content

Commit

Permalink
Allow Github token authorization for all API versions
Browse files Browse the repository at this point in the history
The current master branch allows authorization via the GITHUB_TOKEN
option only for v1 and v2. The dev branch contains a fix for this,

eduardoboucas@1f31ac8

but the pull request has been open for quite some time,

eduardoboucas#405

Unfortunately, the dev branch does not seem to work out of the box
for me, so I will just use this small patch to make Staticman work
for me for the time being.
  • Loading branch information
freininghaus committed Feb 20, 2022
1 parent 5d7ed77 commit 0481c0e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/GitHub.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ class GitHub extends GitService {
return (async () => {
const isAppAuth = config.get('githubAppID') &&
config.get('githubPrivateKey')
const isLegacyAuth = config.get('githubToken') &&
['1', '2'].includes(options.version)
const isLegacyAuth = config.get('githubToken')

let authToken

Expand Down

0 comments on commit 0481c0e

Please sign in to comment.