Skip to content

[AW Top 10] 02 Sanitize OTLP token before writing to GITHUB_ENV #70460

Done

Description

@github-actions

Priority 2/10 | 1 source issues | Impact 4/5 | Confidence 4/5 | Effort 1/5

One assignment, one coherent fix

The setup action merges the OTLP OIDC token input into header and endpoint strings and appends them to the GITHUB_ENV file without rejecting newline characters, so a crafted token could inject extra environment variables.

Implementation scope

Reject or strip carriage returns and newlines from the token and merged values in action_setup_otlp.cjs, and make writeEnvLine refuse values containing line breaks or use the multi-line delimiter syntax.

Done when

  • A unit test passes a token containing a newline and asserts that no additional variable is written to the GITHUB_ENV file.
  • writeEnvLine rejects any key or value containing a line break and logs a warning without echoing the value.

Why now

The code path was read in the current tree and appends raw interpolated values with no sanitization; the fix is small and local, and the exploit requires a controlled token input, so impact is moderate.

AW source issues and corroborating reports

#70120

No corroborating AW discussion; evidence comes from the source issues.

Unchanged AW sources close only after this summary is completed. Newer source activity and not-planned retirement do not trigger source closure. Assigned summaries are frozen; unassign to allow reclustering.

Generated by AW Essential Issue Clustering · copilot · auto · 32.8 AIC · ⌖ 0.615 AIC · ⊞ 8.8K · ◷

Activity

  1. added
    cookie
    aw-essential
    on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agentic-workflowsautomationaw-essentialcookie

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions