Skip to content

[uk-ai-resilience] Tier C: run-step sanitizer leaves expressions in heredocs/comments (code scanning 1060) #74547

Done

Description

@github-actions

Tier C — Restricted Pending Review

Code scanning alert #1060 (CWE-78, high): pkg/workflow/run_step_sanitizer.go:97. Template-injection validation permits GitHub Actions expressions inside quoted heredoc bodies and shell comments; newline-bearing attacker-controlled values can terminate the heredoc and inject shell commands.

Scores: exposure high, patchability high, detectability low, fragility high, ownership confidence medium.

Remediation: treat heredoc bodies and comments as unsafe locations for expressions, or route via env vars; add compiler tests. SLA: critical. Human review required.

Discussion report: [uk-ai-resilience] Recent-change risk & resilience report 2026-11-03.

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

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 · ⊞ 13K · ◷

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