diff --git a/scan/dist/index.js b/scan/dist/index.js index 8437f9d9..a2ed6e21 100644 --- a/scan/dist/index.js +++ b/scan/dist/index.js @@ -135166,7 +135166,9 @@ var require_utils10 = __commonJS({ "merge-base", github2.context.payload.pull_request.base.sha, github2.context.payload.pull_request.head.sha - ]); + ], { + ignoreReturnCode: true + }); if (output.exitCode === 0) { return output.stdout.trim(); } else { diff --git a/scan/src/utils.ts b/scan/src/utils.ts index 0315cb98..42359ecb 100644 --- a/scan/src/utils.ts +++ b/scan/src/utils.ts @@ -96,11 +96,16 @@ async function getPrSha(): Promise { return process.env.QODANA_PR_SHA } if (github.context.payload.pull_request !== undefined) { - const output = await gitOutput([ - 'merge-base', - github.context.payload.pull_request.base.sha, - github.context.payload.pull_request.head.sha - ]) + const output = await gitOutput( + [ + 'merge-base', + github.context.payload.pull_request.base.sha, + github.context.payload.pull_request.head.sha + ], + { + ignoreReturnCode: true + } + ) if (output.exitCode === 0) { return output.stdout.trim() } else {