Skip to content

[uk-ai-resilience] [uk-ai-governance] Tier C: harden symlink handling (CWE-59) in actions/setup/sh scripts #77500

Done

Description

@github-actions

Tier and risk scoring

Tier C – Restricted Pending Review. Exposure 4, patchability 2, detectability 2, fragility 3, ownership confidence 3 (1-5, higher is riskier).

Findings

Six high-severity open code-scanning alerts (AI-scan CWE-59): #1089, #1090 (generate_git_patch.sh), #1091, #1092 (collect_usage_artifact_files.sh), #1093 (append_agent_step_summary.sh), #1094 (commit_cache_memory_git.sh). Related medium alert: #1087 (install-gh-aw.sh). These scripts run in every compiled workflow, which amplifies exposure.

Remediation

Reject or resolve symlinks before writing or reading files (-L checks, realpath containment, no-follow writes), add tests, and recompile workflows.

  • SLA: high
  • Human review trigger: any change to patch generation or usage artifact collection.

Discussion report: see the "UK AI Open Code Risk & Resilience Report – 2026-11-13" discussion in this repository. Duplicate check was not possible in this run (read access denied); please dedupe on triage.

Generated by UK AI Operational Resilience · copilot · auto (Claude Sonnet 5.5) · ~21 AIC · ⌖ ~2 AIC · ⊞ 8.8K · ◷

Activity

  1. github-actions commented on Nov 13, 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 · ⌖ ~2 AIC · ⊞ 11.1K · ◷

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