File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -127,13 +127,13 @@ jobs:
127
127
previousVersion = [latestVersion[0], latestVersion[1], latestVersion[2] - 2]
128
128
129
129
previousVersionStr = ".".join(map(str, previousVersion))
130
- previousVersionURL = 'https://cdn.hpccsystems. com/releases/CE-Candidate- ' + previousVersionStr \
131
- + '/bin/platform /hpccsystems-platform-community_' + previousVersionStr + '-1jammy_amd64_withsymbols.deb'
130
+ previousVersionURL = 'https://github. com/hpcc-systems/HPCC-Platform/releases/download/community_ ' + previousVersionStr \
131
+ + '-1 /hpccsystems-platform-community_' + previousVersionStr + '-1jammy_amd64_withsymbols.deb'
132
132
133
133
latestVersionStr = ".".join(map(str, latestVersion))
134
- latestVersionURL = 'https://cdn.hpccsystems. com/releases/CE-Candidate- ' + latestVersionStr \
135
- + '/bin/platform /hpccsystems-platform-community_' + latestVersionStr + '-1jammy_amd64_withsymbols.deb'
136
-
134
+ latestVersionURL = 'https://github. com/hpcc-systems/HPCC-Platform/releases/download/community_ ' + latestVersionStr \
135
+ + '-1 /hpccsystems-platform-community_' + latestVersionStr + '-1jammy_amd64_withsymbols.deb'
136
+
137
137
github_output_path = os.getenv('GITHUB_OUTPUT')
138
138
if github_output_path:
139
139
with open(github_output_path, 'a') as output_file:
Original file line number Diff line number Diff line change @@ -56,15 +56,22 @@ jobs:
56
56
console.log(`Allowed repositories: ${allowedRepos.join(", ")}`);
57
57
} else {
58
58
console.log(`No fully qualified repository whitelist configured - no external repositories allowed`);
59
+ allowedRepos.push("hpcc-systems/hpcc-platform"); // Default to HPCC-Platform if no whitelist is configured
59
60
}
60
61
61
62
const repoMatch = body.match(/repository:\s*([^\n]+)/);
62
- if (repoMatch) repository = repoMatch[1].trim();
63
+ if (repoMatch) repository = repoMatch[1].trim().toLowerCase();
64
+ console.log(`Parsed repository: ${repository}`);
63
65
64
66
const branchMatch = body.match(/branch:\s*([^\n]+)/);
65
- if (branchMatch) branch = branchMatch[1].trim();
67
+ if (branchMatch) branch = branchMatch[1].trim().toLowerCase();
68
+ console.log(`Parsed branch: ${branch}`);
66
69
67
- if (repository && !allowedRepos.includes(repository)) {
70
+ // Lowercase allowed repository names to ensure case-insensitive matching
71
+ const lowerCaseAllowedRepos = allowedRepos.map(repo => repo.toLowerCase());
72
+ console.log(`Allowed repositories: ${lowerCaseAllowedRepos.join(", ")}`);
73
+
74
+ if (repository && !lowerCaseAllowedRepos.includes(repository)) {
68
75
console.log(`Repository ${repository} is not allowed. Using default platform.`);
69
76
repository = "";
70
77
branch = "";
You can’t perform that action at this time.
0 commit comments