diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js index f302d028..4fdc0fa3 100644 --- a/dist/cleanup/index.js +++ b/dist/cleanup/index.js @@ -90213,9 +90213,11 @@ function getGitHubHttpHeaders() { const token = core.getInput('token'); const auth = !token ? undefined : `token ${token}`; const headers = { - authorization: auth, accept: 'application/vnd.github.VERSION.raw' }; + if (auth) { + headers.authorization = auth; + } return headers; } exports.getGitHubHttpHeaders = getGitHubHttpHeaders; diff --git a/dist/setup/index.js b/dist/setup/index.js index a81030cf..c2866154 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -127471,9 +127471,11 @@ function getGitHubHttpHeaders() { const token = core.getInput('token'); const auth = !token ? undefined : `token ${token}`; const headers = { - authorization: auth, accept: 'application/vnd.github.VERSION.raw' }; + if (auth) { + headers.authorization = auth; + } return headers; } exports.getGitHubHttpHeaders = getGitHubHttpHeaders;