Loading dist/cleanup/index.js +3 −1 Changes for dist/cleanup/index.js: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -87931,9 +87931,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; dist/setup/index.js +3 −1 Changes for dist/setup/index.js: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -125282,9 +125282,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; src/util.ts +5 −1 Changes for src/util.ts: 5 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -166,9 +166,13 @@ export function convertVersionToSemver(version: number[] | string) { export function getGitHubHttpHeaders(): OutgoingHttpHeaders { const token = core.getInput('token'); const auth = !token ? undefined : `token ${token}`; const headers: OutgoingHttpHeaders = { authorization: auth, accept: 'application/vnd.github.VERSION.raw' }; if (auth) { headers.authorization = auth; } return headers; } Loading
dist/cleanup/index.js +3 −1 Changes for dist/cleanup/index.js: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -87931,9 +87931,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;
dist/setup/index.js +3 −1 Changes for dist/setup/index.js: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -125282,9 +125282,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;
src/util.ts +5 −1 Changes for src/util.ts: 5 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -166,9 +166,13 @@ export function convertVersionToSemver(version: number[] | string) { export function getGitHubHttpHeaders(): OutgoingHttpHeaders { const token = core.getInput('token'); const auth = !token ? undefined : `token ${token}`; const headers: OutgoingHttpHeaders = { authorization: auth, accept: 'application/vnd.github.VERSION.raw' }; if (auth) { headers.authorization = auth; } return headers; }