Skip to content

[uk-ai-resilience] Untracked go/bad-redirect-check alert #941 in github_app_requirements.go (Tier B) #64044

Closed

Description

@github-actions

Summary

UK AI Open Code Governance review (7-day recent-change scope, since 2026-09-21) identified an open CodeQL alert with no matching tracking issue, in a file modified the same day (2026-09-28) by the automated commit stream:

Alert: #941 — CodeQL go/bad-redirect-check (severity: error)
Location: pkg/workflow/github_app_requirements.go:151

if strings.HasPrefix(name, "/") {
    // Slash command shorthand, e.g. "on: /my-bot".
    addEvents(commandTriggerDefaultWebhookEvents)
    continue
}

Tier: B — Open With Conditions

Dimension Rating
Exposure amplification Low
Patchability High
Detectability Medium (CodeQL catches it, but it isn't visible in the tracking-issue backlog)
Operational fragility Low
Ownership confidence Medium (no CODEOWNERS assigns an explicit owner — see #61637)

Assessment

CodeQL's message: "This is a check that this value, which flows into a redirect, has a leading slash, but not that it does not have '/' or '' in its second position." This is the same recurring false-positive pattern already documented in #57472, #59491, and #54037 across pkg/cli and pkg/workflow: a strings.HasPrefix(name, "/") check used purely to detect a slash-command trigger shorthand string (e.g. on: /my-bot) is being misclassified by CodeQL's redirect-check heuristic, because name here never flows into an actual HTTP redirect — it flows into workflow trigger/webhook-event normalization logic.

This alert is the fifth occurrence of the class and, per the pattern established in #57472/#59491, is very likely another false positive rather than a genuine open-redirect vulnerability.

Remediation action

SLA urgency: high — untracked alerts in actively-changed files reduce confidence in the classification step of the operational governance loop.

Report

See the full UK AI Open Code Risk & Resilience Governance discussion report generated in this run for asset graph, control verification, and full remediation queue.

Related

Generated by UK AI Operational Resilience · copilot · auto · 75.7 AIC · ⌖ 8.88 AIC · ⊞ 7.8K · ◷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions