Commit eeda9c0
committed
Prevent workflow command injection via commit history log
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.1 parent 4ed4496 commit eeda9c0
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
169 | 171 | | |
| 172 | + | |
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
| |||
0 commit comments