Skip to content

Commit

Permalink
Merge pull request #2751 from github/henrymercer/fix-init-post-withou…
Browse files Browse the repository at this point in the history
…t-config

Send `init-post` status report in absence of config
  • Loading branch information
henrymercer authored Feb 3, 2025
2 parents ad42dbd + cf7c687 commit 08bc0cf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
5 changes: 3 additions & 2 deletions lib/init-action-post.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/init-action-post.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 9 additions & 10 deletions src/init-action-post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,16 @@ async function runWrapper() {
logger.warning(
"Debugging artifacts are unavailable since the 'init' Action failed before it could produce any.",
);
return;
} else {
uploadFailedSarifResult = await initActionPostHelper.run(
debugArtifacts.tryUploadAllAvailableDebugArtifacts,
printDebugLogs,
config,
repositoryNwo,
features,
logger,
);
}

uploadFailedSarifResult = await initActionPostHelper.run(
debugArtifacts.tryUploadAllAvailableDebugArtifacts,
printDebugLogs,
config,
repositoryNwo,
features,
logger,
);
} catch (unwrappedError) {
const error = wrapError(unwrappedError);
core.setFailed(error.message);
Expand Down

0 comments on commit 08bc0cf

Please # to comment.