mirror of
https://github.com/actions/setup-java.git
synced 2026-06-27 23:50:01 +00:00
Compare commits
1 Commits
98a38d1cca
...
32c05c3a4a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
32c05c3a4a |
4
dist/cleanup/index.js
vendored
4
dist/cleanup/index.js
vendored
@ -87931,11 +87931,9 @@ 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;
|
||||
|
||||
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
@ -125282,11 +125282,9 @@ 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;
|
||||
|
||||
@ -166,13 +166,9 @@ 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…
Reference in New Issue
Block a user