From 5f9ce8480a2e1febc269b3167e86fd3bc45a09bf Mon Sep 17 00:00:00 2001 From: Ivan Zosimov Date: Fri, 1 Dec 2023 14:41:37 +0100 Subject: [PATCH] chore: rebuild action --- dist/cleanup/index.js | 4 +++- dist/setup/index.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js index f302d0281..4fdc0fa31 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 a81030cf1..c2866154a 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;