Skip to content

Commit b3b4eca

Browse files
authored
Update testRepo.js - use OWN_GITHUB_TOKEN (#4801)
1 parent 72e3418 commit b3b4eca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/testRepo.js

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ let latest;
66
let stable;
77
let axiosCounter = 0;
88

9+
axios.defaults.headers = {
10+
'Authorization': process.env.OWN_GITHUB_TOKEN ? `token ${process.env.OWN_GITHUB_TOKEN}` : 'none',
11+
};
12+
913
async function request(url) {
1014
axiosCounter++;
1115
if (axiosCounter % 5) {

0 commit comments

Comments
 (0)