mirror of
https://github.com/actions/setup-java.git
synced 2026-10-08 09:33:00 +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
@@ -73,6 +73,7 @@ export class MicrosoftDistributions extends 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';
|
||||
@@ -82,7 +83,7 @@ export class MicrosoftDistributions extends JavaBase {
|
||||
const fileUrl = `https://api.github.com/repos/${owner}/${repository}/contents/${filePath}?ref=${branch}`;
|
||||
|
||||
const headers: OutgoingHttpHeaders = {
|
||||
authorization: token,
|
||||
authorization: auth,
|
||||
accept: 'application/vnd.github.VERSION.raw'
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user