Skip to content

Actions: The regex wasn't escaping external input - #22240

Open
JarLob wants to merge 1 commit into
github:mainfrom
JarLob:fix/actions-output-clobbering-regex
Open

Actions: The regex wasn't escaping external input#22240
JarLob wants to merge 1 commit into
github:mainfrom
JarLob:fix/actions-output-clobbering-regex

Conversation

@JarLob

@JarLob JarLob commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 27, 2026 21:45
@JarLob
JarLob requested a review from a team as a code owner July 27, 2026 21:45
@github-actions github-actions Bot added documentation Actions Analysis of GitHub Actions labels Jul 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes regex handling in the Actions output-clobbering query.

Changes:

  • Replaces dynamic regex construction with literal command lookup.
  • Adds regression cases for metacharacters and env echo.
  • Updates expected query results and change notes.
Show a summary per file
File Description
OutputClobberingQuery.qll Avoids embedding source input in a regex.
output2.yml Adds regression scenarios.
OutputClobberingHigh.expected Updates expected findings.
2026-07-28-output-clobbering-regex.md Documents the fix.

Review details

  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Medium

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

Labels

Actions Analysis of GitHub Actions documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants