From 1a5396471866ed9092db902ec9b645ed632d66b2 Mon Sep 17 00:00:00 2001 From: christian <153755613+skateball@users.noreply.github.com> Date: Mon, 29 Sep 2025 15:33:25 +0200 Subject: [PATCH 1/3] Update SapMachine URLs --- src/distributions/sapmachine/installer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/distributions/sapmachine/installer.ts b/src/distributions/sapmachine/installer.ts index dfe32e16..f55fe413 100644 --- a/src/distributions/sapmachine/installer.ts +++ b/src/distributions/sapmachine/installer.ts @@ -64,12 +64,12 @@ export class SapMachineDistribution extends JavaBase { const arch = this.distributionArchitecture(); let fetchedReleasesJson = await this.fetchReleasesFromUrl( - 'https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json' + 'https://sapmachine.io/assets/data/sapmachine-releases-all.json' ); if (!fetchedReleasesJson) { fetchedReleasesJson = await this.fetchReleasesFromUrl( - 'https://api.github.com/repos/SAP/SapMachine/contents/assets/data/sapmachine-releases-all.json?ref=gh-pages', + 'https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json', getGitHubHttpHeaders() ); } From 3727bd882b02a990186180c19980acf10f15b8f8 Mon Sep 17 00:00:00 2001 From: skateball Date: Mon, 20 Oct 2025 18:00:34 +0200 Subject: [PATCH 2/3] Update SapMachine release URLs for fetching version information --- dist/setup/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 08107f09..26b60524 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -130420,9 +130420,9 @@ class SapMachineDistribution extends base_installer_1.JavaBase { return __awaiter(this, void 0, void 0, function* () { const platform = this.getPlatformOption(); const arch = this.distributionArchitecture(); - let fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json'); + let fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sapmachine.io/assets/data/sapmachine-releases-all.json'); if (!fetchedReleasesJson) { - fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://api.github.com/repos/SAP/SapMachine/contents/assets/data/sapmachine-releases-all.json?ref=gh-pages', (0, util_1.getGitHubHttpHeaders)()); + fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json', (0, util_1.getGitHubHttpHeaders)()); } if (!fetchedReleasesJson) { throw new Error(`Couldn't fetch SapMachine versions information from both primary and backup urls`); From f36eaff1c937d268d43d6067417f6431b5399804 Mon Sep 17 00:00:00 2001 From: skateball Date: Fri, 24 Oct 2025 14:50:54 +0200 Subject: [PATCH 3/3] Remove unnecessary GitHub HTTP headers from fetchReleasesFromUrl call --- dist/setup/index.js | 2 +- src/distributions/sapmachine/installer.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 26b60524..bdf29efb 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -130422,7 +130422,7 @@ class SapMachineDistribution extends base_installer_1.JavaBase { const arch = this.distributionArchitecture(); let fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sapmachine.io/assets/data/sapmachine-releases-all.json'); if (!fetchedReleasesJson) { - fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json', (0, util_1.getGitHubHttpHeaders)()); + fetchedReleasesJson = yield this.fetchReleasesFromUrl('https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json'); } if (!fetchedReleasesJson) { throw new Error(`Couldn't fetch SapMachine versions information from both primary and backup urls`); diff --git a/src/distributions/sapmachine/installer.ts b/src/distributions/sapmachine/installer.ts index f55fe413..39014b6f 100644 --- a/src/distributions/sapmachine/installer.ts +++ b/src/distributions/sapmachine/installer.ts @@ -69,8 +69,7 @@ export class SapMachineDistribution extends JavaBase { if (!fetchedReleasesJson) { fetchedReleasesJson = await this.fetchReleasesFromUrl( - 'https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json', - getGitHubHttpHeaders() + 'https://sap.github.io/SapMachine/assets/data/sapmachine-releases-all.json' ); }