Delete create-branch.yml workflow with code injection vulnerability#3065
Merged
Delete create-branch.yml workflow with code injection vulnerability#3065
Conversation
Removed .github/workflows/create-branch.yml to fix critical code injection vulnerability (CVE-severity). The workflow had two injection points where github.event.inputs.name was used directly in bash scripts without sanitization, allowing potential arbitrary code execution. Per maintainer request, deleting the workflow is the most secure solution. Fixes #3058 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix critical code injection vulnerability in create-branch.yml
Delete create-branch.yml workflow with code injection vulnerability
Nov 3, 2025
pelikhan
approved these changes
Nov 3, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR removes the create-branch.yml GitHub Actions workflow that was used for manually creating and pushing new branches via workflow dispatch.
- Deletes the entire workflow file that allowed users to create branches through GitHub's UI
- Removes functionality for automated branch creation with validation and summary reporting
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
16 tasks
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.
The
create-branch.ymlworkflow had critical code injection vulnerabilities where unsanitized user input (github.event.inputs.name) was used directly in bash scripts.Changes
.github/workflows/create-branch.ymlentirelyVulnerability Details
Two injection points existed:
Malicious input like
$(malicious command)or; rm -rf /would execute in the workflow context withcontents: writepermissions.Per maintainer request, deletion is preferred over sanitization.
Fixes #3058
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.