Skip to content

Commit

Permalink
Add authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
sadick254 authored and darangi committed Jan 12, 2021
1 parent 3d50d4b commit e976ebd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/lib/download-file-from-github.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ module.exports = function(downloadURL, destinationPath) {
const response = syncRequest('GET', downloadURL, {
headers: {
Accept: 'application/vnd.github.v3.raw',
'User-Agent': 'Atom Build'
'User-Agent': 'Atom Build',
Authorization: `token ${process.env.GITHUB_TOKEN}`
}
});

Expand Down

0 comments on commit e976ebd

Please sign in to comment.