Skip to content

Commit 54b7392

Browse files
committed
check for gh token up front
1 parent 28a2909 commit 54b7392

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ const PackageLockSource = require('tiny-attribution-generator/lib/inputs/package
1414
.default
1515
const request = require('superagent')
1616

17+
if (!process.env.GITHUB_TOKEN) throw new Error('GITHUB_TOKEN is required!')
18+
1719
const noticesFileName = argv.filename || 'NOTICE'
1820
const includeDev = argv.includeDev || false
1921
const noticesBranchName = 'notices'

0 commit comments

Comments
 (0)