mirror of
https://github.com/actions/setup-java.git
synced 2025-07-18 21:35:14 +00:00
github token accept through environment variable
This commit is contained in:
parent
6992528a74
commit
4c9e711992
5 changed files with 7 additions and 12 deletions
4
dist/cleanup/index.js
vendored
4
dist/cleanup/index.js
vendored
|
@ -93676,8 +93676,8 @@ function convertVersionToSemver(version) {
|
|||
return mainVersion;
|
||||
}
|
||||
exports.convertVersionToSemver = convertVersionToSemver;
|
||||
function getGitHubHttpHeaders(token) {
|
||||
const resolvedToken = token || core.getInput('token');
|
||||
function getGitHubHttpHeaders() {
|
||||
const resolvedToken = process.env.GITHUB_TOKEN || core.getInput('token');
|
||||
const auth = !resolvedToken ? undefined : `token ${resolvedToken}`;
|
||||
const headers = {
|
||||
accept: 'application/vnd.github.VERSION.raw'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue