2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-21 13:24:11 +03:00

chore(ci): add authorization token for GitHub API requests; (#5442)

This commit is contained in:
Dmitriy Mozgovoy
2023-01-06 16:17:02 +02:00
committed by GitHub
parent 139d51f682
commit 145df40e44
3 changed files with 11 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
import axios from '../index.js';
const {GITHUB_TOKEN} = process.env;
export default axios.create({
headers: {
Authorization: GITHUB_TOKEN ? `token ${GITHUB_TOKEN}` : null
}
})