Skip to content

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

Merged
aschackmull merged 4 commits into
github:mainfrom
JarLob:fix/actions-output-clobbering-regex
Jul 31, 2026
Merged

Actions: The regex wasn't escaping external input#22240
aschackmull merged 4 commits 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

aschackmull
aschackmull previously approved these changes Jul 31, 2026

@aschackmull aschackmull 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.

LGTM

@JarLob
JarLob force-pushed the fix/actions-output-clobbering-regex branch from c745d74 to b9a5dd4 Compare July 31, 2026 09:40
@aschackmull
aschackmull merged commit 5f6b37d into github:main Jul 31, 2026
18 checks passed
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.

3 participants