Use artifact scanner in debug artifacts PR checks

This commit is contained in:
Henry Mercer
2025-12-17 10:25:47 +00:00
parent 5459b98ca0
commit f28848a66a
7 changed files with 2828 additions and 2193 deletions

File diff suppressed because it is too large Load Diff

1704
lib/init-action-post.js generated

File diff suppressed because it is too large Load Diff

View File

@@ -19419,7 +19419,7 @@ var require_exec = __commonJS({
exports2.getExecOutput = exports2.exec = void 0;
var string_decoder_1 = require("string_decoder");
var tr = __importStar4(require_toolrunner());
function exec(commandLine, args, options) {
function exec3(commandLine, args, options) {
return __awaiter4(this, void 0, void 0, function* () {
const commandArgs = tr.argStringToArray(commandLine);
if (commandArgs.length === 0) {
@@ -19431,7 +19431,7 @@ var require_exec = __commonJS({
return runner.exec();
});
}
exports2.exec = exec;
exports2.exec = exec3;
function getExecOutput(commandLine, args, options) {
var _a, _b;
return __awaiter4(this, void 0, void 0, function* () {
@@ -19454,7 +19454,7 @@ var require_exec = __commonJS({
}
};
const listeners = Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.listeners), { stdout: stdOutListener, stderr: stdErrListener });
const exitCode = yield exec(commandLine, args, Object.assign(Object.assign({}, options), { listeners }));
const exitCode = yield exec3(commandLine, args, Object.assign(Object.assign({}, options), { listeners }));
stdout += stdoutDecoder.end();
stderr += stderrDecoder.end();
return {
@@ -19532,12 +19532,12 @@ var require_platform = __commonJS({
Object.defineProperty(exports2, "__esModule", { value: true });
exports2.getDetails = exports2.isLinux = exports2.isMacOS = exports2.isWindows = exports2.arch = exports2.platform = void 0;
var os_1 = __importDefault4(require("os"));
var exec = __importStar4(require_exec());
var exec3 = __importStar4(require_exec());
var getWindowsInfo = () => __awaiter4(void 0, void 0, void 0, function* () {
const { stdout: version } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"', void 0, {
const { stdout: version } = yield exec3.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"', void 0, {
silent: true
});
const { stdout: name } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"', void 0, {
const { stdout: name } = yield exec3.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"', void 0, {
silent: true
});
return {
@@ -19547,7 +19547,7 @@ var require_platform = __commonJS({
});
var getMacOsInfo = () => __awaiter4(void 0, void 0, void 0, function* () {
var _a, _b, _c, _d;
const { stdout } = yield exec.getExecOutput("sw_vers", void 0, {
const { stdout } = yield exec3.getExecOutput("sw_vers", void 0, {
silent: true
});
const version = (_b = (_a = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : "";
@@ -19558,7 +19558,7 @@ var require_platform = __commonJS({
};
});
var getLinuxInfo = () => __awaiter4(void 0, void 0, void 0, function* () {
const { stdout } = yield exec.getExecOutput("lsb_release", ["-i", "-r", "-s"], {
const { stdout } = yield exec3.getExecOutput("lsb_release", ["-i", "-r", "-s"], {
silent: true
});
const [name, version] = stdout.trim().split("\n");
@@ -19658,7 +19658,7 @@ var require_core = __commonJS({
ExitCode2[ExitCode2["Success"] = 0] = "Success";
ExitCode2[ExitCode2["Failure"] = 1] = "Failure";
})(ExitCode || (exports2.ExitCode = ExitCode = {}));
function exportVariable5(name, val2) {
function exportVariable6(name, val2) {
const convertedVal = (0, utils_1.toCommandValue)(val2);
process.env[name] = convertedVal;
const filePath = process.env["GITHUB_ENV"] || "";
@@ -19667,7 +19667,7 @@ var require_core = __commonJS({
}
(0, command_1.issueCommand)("set-env", { name }, convertedVal);
}
exports2.exportVariable = exportVariable5;
exports2.exportVariable = exportVariable6;
function setSecret(secret) {
(0, command_1.issueCommand)("add-mask", {}, secret);
}
@@ -33934,7 +33934,7 @@ var require_cacheUtils = __commonJS({
Object.defineProperty(exports2, "__esModule", { value: true });
exports2.getRuntimeToken = exports2.getCacheVersion = exports2.assertDefined = exports2.getGnuTarPathOnWindows = exports2.getCacheFileName = exports2.getCompressionMethod = exports2.unlinkFile = exports2.resolvePaths = exports2.getArchiveFileSizeInBytes = exports2.createTempDirectory = void 0;
var core14 = __importStar4(require_core());
var exec = __importStar4(require_exec());
var exec3 = __importStar4(require_exec());
var glob2 = __importStar4(require_glob());
var io6 = __importStar4(require_io3());
var crypto = __importStar4(require("crypto"));
@@ -34018,7 +34018,7 @@ var require_cacheUtils = __commonJS({
additionalArgs.push("--version");
core14.debug(`Checking ${app} ${additionalArgs.join(" ")}`);
try {
yield exec.exec(`${app}`, additionalArgs, {
yield exec3.exec(`${app}`, additionalArgs, {
ignoreReturnCode: true,
silent: true,
listeners: {
@@ -119851,6 +119851,9 @@ var STREAMING_HIGH_WATERMARK_BYTES = 4 * 1024 * 1024;
var actionsCache3 = __toESM(require_cache3());
var glob = __toESM(require_glob3());
// src/artifact-scanner.ts
var exec = __toESM(require_exec());
// src/debug-artifacts.ts
async function getArtifactUploaderClient(logger, ghVariant) {
if (ghVariant === "GitHub Enterprise Server" /* GHES */) {

File diff suppressed because it is too large Load Diff