mirror of
https://github.com/actions/configure-pages.git
synced 2025-12-09 00:26:08 +00:00
Remove input data from axios call
This commit is contained in:
6
dist/index.js
vendored
6
dist/index.js
vendored
@@ -8220,14 +8220,12 @@ const axios = __nccwpck_require__(6545)
|
|||||||
async function getPageBaseUrl() {
|
async function getPageBaseUrl() {
|
||||||
try {
|
try {
|
||||||
const pagesEndpoint = `https://api.github.com/repos/${process.env.GITHUB_REPOSITORY}/pages`
|
const pagesEndpoint = `https://api.github.com/repos/${process.env.GITHUB_REPOSITORY}/pages`
|
||||||
const response = await axios.get(
|
const response = await axios.get(
|
||||||
pagesEndpoint,
|
pagesEndpoint,
|
||||||
{},
|
|
||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
Accept: 'application/vnd.github.v3+json',
|
Accept: 'application/vnd.github.v3+json',
|
||||||
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
|
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`
|
||||||
'Content-type': 'application/json'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -4,14 +4,12 @@ const axios = require('axios')
|
|||||||
async function getPageBaseUrl() {
|
async function getPageBaseUrl() {
|
||||||
try {
|
try {
|
||||||
const pagesEndpoint = `https://api.github.com/repos/${process.env.GITHUB_REPOSITORY}/pages`
|
const pagesEndpoint = `https://api.github.com/repos/${process.env.GITHUB_REPOSITORY}/pages`
|
||||||
const response = await axios.get(
|
const response = await axios.get(
|
||||||
pagesEndpoint,
|
pagesEndpoint,
|
||||||
{},
|
|
||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
Accept: 'application/vnd.github.v3+json',
|
Accept: 'application/vnd.github.v3+json',
|
||||||
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
|
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`
|
||||||
'Content-type': 'application/json'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user