mirror of
https://github.com/actions/setup-java.git
synced 2026-10-04 09:14:34 +03:00
Pass the token input through on GHES for Microsoft Build of OpenJDK (#395)
This commit is contained in:
1 parent
de1bb2b0c5
commit
bf2f02c4a7
4 files changed
+22
-4
No files matched your search
Vendored
+2
-1
@@ -104539,6 +104539,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';
|
||||
@@ -104546,7 +104547,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;
|
||||
|
||||
Reference in new issue
Block a user