We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm getting an error for a shell command in a run step that creates a new branch during a deployment process:
run
git checkout -b "release-${VERSION}"
The error is:
Use of "git checkout" in a bash script with a potentially dangerous reference.
What are your thoughts? Is there cause for concern when creating a branch with a potentially user-controlled name?
The text was updated successfully, but these errors were encountered:
This could potentially be dangerous because it creates a branch from another user-controlled ref:
git checkout -b "release-${VERSION}" "${ANOTHER_REF}"
Sorry, something went wrong.
I think it's a false positive here, the tool search for something that is not a character like $, I don't think it's exploitable in your case
$
No branches or pull requests
I'm getting an error for a shell command in a
run
step that creates a new branch during a deployment process:git checkout -b "release-${VERSION}"
The error is:
What are your thoughts? Is there cause for concern when creating a branch with a potentially user-controlled name?
The text was updated successfully, but these errors were encountered: