Skip to content

Commit

Permalink
authorize github api requests
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Aug 2, 2020
1 parent b67d3b9 commit 92d4486
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion update_change_history.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ function req() {
request({
url: `https://api.github.com/repos/rdmtc/RedMatic/releases?page=${page}&per_page=100`,
headers: {
'User-Agent': 'node-request'
'User-Agent': 'node-request',
'Authorization': `token ${process.env.GITHUB_OAUTH_TOKEN}`
}
}, (err, res, body) => {
if (!err) {
Expand Down

0 comments on commit 92d4486

Please sign in to comment.