Patch upload-artifact v4.6.2 for Gitea
Some checks failed
Code scanning - action / CodeQL-Build (push) Has been cancelled

This commit is contained in:
ephesus
2026-07-11 14:54:25 +08:00
parent ea165f8d65
commit 6acca0642c
3 changed files with 17 additions and 14 deletions

View File

@@ -2898,12 +2898,7 @@ function getResultsServiceUrl() {
}
exports.getResultsServiceUrl = getResultsServiceUrl;
function isGhes() {
const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');
const hostname = ghUrl.hostname.trimEnd().toUpperCase();
const isGitHubHost = hostname === 'GITHUB.COM';
const isGheHost = hostname.endsWith('.GHE.COM');
const isLocalHost = hostname.endsWith('.LOCALHOST');
return !isGitHubHost && !isGheHost && !isLocalHost;
return false;
}
exports.isGhes = isGhes;
function getGitHubWorkspaceDir() {
@@ -135923,4 +135918,4 @@ module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"]
/******/ module.exports = __webpack_exports__;
/******/
/******/ })()
;
;