Fix shell injection in update-changelog workflow for PR titles with backticks#897
Merged
DannyvdSluijs merged 1 commit intomainfrom Mar 17, 2026
Merged
Conversation
Copilot
AI
changed the title
[WIP] Fix changelog entry failing action due to the PR title
Fix shell injection in update-changelog workflow for PR titles with backticks
Mar 17, 2026
DannyvdSluijs
approved these changes
Mar 17, 2026
…injection Move variable assignments from run: block to env: block to prevent bash from interpreting backticks in PR titles as command substitution. Fixes issue where PR titles like "Remove `v` prefix..." would fail with "v: command not found" error. Co-authored-by: DannyvdSluijs <618940+DannyvdSluijs@users.noreply.github.com>
753165c to
7a0e6c2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR titles containing backticks (e.g., "Remove
vprefix from release tags") cause the changelog workflow to fail withv: command not foundbecause bash interprets backticks as command substitution.Changes
run:toenv:block in the "Update CHANGELOG.md" stepBefore
After
Using the
env:block ensures GitHub Actions sets environment variables before the shell executes, preventing interpretation of special characters.📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.