diff --git a/.github/workflows/checkAudit.yml b/.github/workflows/checkAudit.yml index 288650be5..78b854a71 100644 --- a/.github/workflows/checkAudit.yml +++ b/.github/workflows/checkAudit.yml @@ -288,7 +288,6 @@ jobs: } else console.log(`Commit ${hash} is associated with this PR. Check passed.`) } catch (error) { - console.log(`Error fetching commit ${hash}: ${error.message}`); console.error(`The following audit commit seems to be invalid: ${hash}`); console.error(`Please check if the 'auditCommitHash' in the audit log is accurate and try again.`); console.error(`Aborting now.`); @@ -299,7 +298,12 @@ jobs: (async () => { for (const hash of commitHashes) { console.log(`next hash: ${hash}`) - await checkCommit(hash); + + try { + await checkCommit(hash); + } catch { + throw new Error(``); + } } // Set environment variable based on whether all commits are found