2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-05 16:42:32 +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
+1 -1
View File
@@ -1,4 +1,4 @@
import axios from "../index.js";
import axios from "./githubAPI.js";
import util from "util";
import cp from "child_process";
import Handlebars from "handlebars";
+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
}
})
+1 -1
View File
@@ -1,6 +1,6 @@
import gulp from 'gulp';
import fs from 'fs-extra';
import axios from './index.js';
import axios from './bin/githubAPI.js';
import minimist from 'minimist'
const argv = minimist(process.argv.slice(2));