Skip to content

[uk-ai-resilience] Tier B: label validator checks blocked labels before sanitization (code scanning 1061) #74888

Done

Description

@github-actions

Tier B, remediation priority: high (SLA: high)

Location: actions/setup/js/safe_output_validator.cjs (~line 105), code scanning alert 1061.

validateLabels matches blocked/allowed patterns on raw strings, then sanitizeLabelContent normalizes Unicode (zero-width, fullwidth, homoglyphs). A variant label can bypass a blocked pattern and become the blocked label after sanitization.

Risk scores (1-5): exposure 4, patchability 1 (small fix), detectability 3, fragility 3, ownership confidence 2.

Remediation: sanitize first, then apply blocked/allowed checks on the sanitized value (or re-check after sanitization in add_labels.cjs); add tests for zero-width and fullwidth variants.

Human review trigger: gating/approval label semantics.

Discussion report: see the "[uk-ai-resilience] Recent-changes risk & resilience report 2026-11-04" discussion in this repository.

Generated by UK AI Operational Resilience · copilot · auto · ~21 AIC · ⌖ ~1 AIC · ⊞ 8.6K · ◷

Activity

  1. github-actions commented on Nov 4, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, Copilot will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⌖ ~1 AIC · ⊞ 12.9K · ◷

  2. linked a pull request that will close this issueMatch label filters against sanitized values #74905on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ai-generatedcookiehigh-prioritysecurity

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions