Skip to content

False positive: Branch creation treated as a checkout #20

@johnbillion

Description

@johnbillion

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:

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions