We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c2a965 commit 6aab173Copy full SHA for 6aab173
scripts/github_token.js
@@ -11,9 +11,9 @@ const env = k => {
11
else throw new Error(`Must set ${k}`)
12
}
13
14
-const token = jwt.sign({
15
- // iss: env('GITHUB_APP_ID')
16
-}, env('GITHUB_APP_PEM'), {
+const token = jwt.sign(
+ {},
+ new Buffer(env('GITHUB_APP_PEM'), 'base64').toString('utf8'), {
17
issuer: env('GITHUB_APP_ID'),
18
algorithm: 'RS256',
19
expiresIn: '10m'
0 commit comments