Skip to content

Prevent workflow command injection via commit history log#1

Merged
fahrradflucht merged 1 commit intoJimdo:masterfrom
fahrradflucht:bugfix/stop-commands-in-history-log
Mar 4, 2026
Merged

Prevent workflow command injection via commit history log#1
fahrradflucht merged 1 commit intoJimdo:masterfrom
fahrradflucht:bugfix/stop-commands-in-history-log

Conversation

@fahrradflucht
Copy link
Member

When the action logs commit history to the runner output, any GitHub
Actions workflow commands (e.g. ::set-output::, ::error::, ::warning::)
present in commit messages are interpreted by the runner. This can cause
unexpected side effects or CI failures.

Wrap the history output in a ::stop-commands:: / ::<endtoken>:: pair
so that workflow commands in commit messages are printed literally
instead of being executed.
@fahrradflucht fahrradflucht merged commit 06ef50e into Jimdo:master Mar 4, 2026
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant