From 31bc2a735dc7ee264464cb89df64bd8d48da0522 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Thu, 14 May 2026 19:59:47 -0400 Subject: [PATCH] .github/workflows/releng-audit: handle missing case of skipping audit on override If someone adds -fail/-pass and override exists, the label should be removed and -override respected. Signed-off-by: Patrick Donnelly --- .github/workflows/releng-audit.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/releng-audit.yaml b/.github/workflows/releng-audit.yaml index c1e1845d8acd..08741378c15f 100644 --- a/.github/workflows/releng-audit.yaml +++ b/.github/workflows/releng-audit.yaml @@ -180,10 +180,17 @@ jobs: // Block humans from applying machine labels if (!isBot && (labelName === 'releng-audit-pass' || labelName === 'releng-audit-fail')) { - core.warning(`[Router] User @${actor} cannot manually apply ${labelName}. Stripping labels and forcing audit.`); + core.warning(`[Router] User @${actor} cannot manually apply ${labelName}.`); try { await github.rest.issues.removeLabel({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number, name: 'releng-audit-fail' }); } catch (e) {} try { await github.rest.issues.removeLabel({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number, name: 'releng-audit-pass' }); } catch (e) {} - core.setOutput('run_audit', 'true'); + + if (hasOverrideLabel) { + core.info(`[Router] override label applied, skipping audit.`); + core.setOutput('run_audit', 'false'); + } else { + core.info(`[Router] forcing audit.`); + core.setOutput('run_audit', 'true'); + } return; } -- 2.47.3