mirror of
https://github.com/actions/setup-java.git
synced 2025-04-22 02:46:46 +00:00
pass the token input through on GHES
This commit is contained in:
parent
2c53c1a588
commit
b5bfbd2bba
2 changed files with 4 additions and 2 deletions
3
dist/setup/index.js
vendored
3
dist/setup/index.js
vendored
|
@ -104538,6 +104538,7 @@ class MicrosoftDistributions extends base_installer_1.JavaBase {
|
|||
// TODO get these dynamically!
|
||||
// We will need Microsoft to add an endpoint where we can query for versions.
|
||||
const token = core.getInput('token');
|
||||
const auth = !token ? undefined : `token ${token}`;
|
||||
const owner = 'actions';
|
||||
const repository = 'setup-java';
|
||||
const branch = 'main';
|
||||
|
@ -104545,7 +104546,7 @@ class MicrosoftDistributions extends base_installer_1.JavaBase {
|
|||
let releases = null;
|
||||
const fileUrl = `https://api.github.com/repos/${owner}/${repository}/contents/${filePath}?ref=${branch}`;
|
||||
const headers = {
|
||||
authorization: token,
|
||||
authorization: auth,
|
||||
accept: 'application/vnd.github.VERSION.raw'
|
||||
};
|
||||
let response = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue