From e83c663c47a9ab93704ec54b9529f2b3883b7ffa Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Fri, 10 Jul 2026 16:40:47 -0400 Subject: [PATCH] .github/workflows/releng-audit: keep failed state on other label events Signed-off-by: Patrick Donnelly --- .github/workflows/releng-audit.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/releng-audit.yaml b/.github/workflows/releng-audit.yaml index 6112b9ded6e..4cbcfaa039d 100644 --- a/.github/workflows/releng-audit.yaml +++ b/.github/workflows/releng-audit.yaml @@ -228,7 +228,11 @@ jobs: } } - core.info(`[Router] Labeled event handled without triggering audit.`); + if (hasFailLabel && labelName !== 'releng-audit-override') { + core.setFailed("PR is currently in a failed audit state. Remove the releng-audit-fail label to re-run."); + } else { + core.info(`[Router] Labeled event handled without triggering audit.`); + } core.setOutput('run_audit', 'false'); return; } @@ -254,7 +258,11 @@ jobs: return; } - core.info('[Router] Event did not match any trigger criteria. Skipping audit.'); + if (hasFailLabel && eventName === 'pull_request_target') { + core.setFailed("PR is currently in a failed audit state. Remove the releng-audit-fail label to re-run."); + } else { + core.info('[Router] Event did not match any trigger criteria. Skipping audit.'); + } core.setOutput('run_audit', 'false'); - name: Checkout Trusted Base Repository -- 2.47.3