Send init-post status report in absence of config

This commit is contained in:
Henry Mercer 2025-02-03 19:46:23 +00:00
parent ad42dbd32d
commit cf7c687919
3 changed files with 13 additions and 13 deletions

View file

@ -64,9 +64,10 @@ async function runWrapper() {
config = await (0, config_utils_1.getConfig)((0, actions_util_1.getTemporaryDirectory)(), logger);
if (config === undefined) {
logger.warning("Debugging artifacts are unavailable since the 'init' Action failed before it could produce any.");
return;
}
uploadFailedSarifResult = await initActionPostHelper.run(debugArtifacts.tryUploadAllAvailableDebugArtifacts, actions_util_1.printDebugLogs, config, repositoryNwo, features, logger);
else {
uploadFailedSarifResult = await initActionPostHelper.run(debugArtifacts.tryUploadAllAvailableDebugArtifacts, actions_util_1.printDebugLogs, config, repositoryNwo, features, logger);
}
}
catch (unwrappedError) {
const error = (0, util_1.wrapError)(unwrappedError);