diff --git a/src/index.js b/src/index.js index 2bc8c0a..3d29601 100644 --- a/src/index.js +++ b/src/index.js @@ -37,7 +37,7 @@ async function run() { jobHasError = runAssertions(uses, allowlist, isDryRun); } else if (steps !== undefined) { for (const step of steps) { - jobHasError = runAssertions(step['uses'], allowlist, isDryRun); + jobHasError ||= runAssertions(step['uses'], allowlist, isDryRun); } } else { core.warning(`The "${job}" job of the "${basename}" workflow does not contain uses or steps.`); @@ -107,4 +107,4 @@ function runAssertions(uses, allowlist, isDryRun) { } return hasError; -} \ No newline at end of file +}