Skip to content

Question: Choctaw Github SSH Key Errors #52

Open
@bp4151

Description

Greetings,

I am trying to run a Choctaw Hog scan of one of my repositories using the Docker image in Windows 10 Powershell.

  1. I have created the ssh key
  2. I have placed the id_rsa and id_rsa.pub files in my C:\users[username].ssh\github_choctaw_hog folder
  3. I have created the ssh key in Github
  4. I save my ssh key password to environmental variable $env:ssh_key
  5. I run the following command:
    docker run -it --rm wetfeet2000/choctaw_hog:1.0.10 choctaw_hog --sshkeypath C:\users\[user]\.ssh\github_choctaw_hog_rsa --sshkeyphrase $env:ssh_pass [email protected]:[org]/[repo].git

which results in the following error:

error: Found argument '[email protected]:[org]/[repo].git' which wasn't expected, or isn't valid in this context

USAGE:
===>>>    choctaw_hog <GITPATH> --sshkeypath <SSHKEYPATH> --sshkeyphrase <SSHKEYPHRASE> <<<===
  1. I then run the following command, moving the github url:
    docker run -it --rm wetfeet2000/choctaw_hog:1.0.10 choctaw_hog [email protected]:[org]/[repo].git --sshkeypath C:\users\[user]\.ssh\github_choctaw_hog_rsa --sshkeyphrase $env:ssh_pass

which results in the following error:

error: Found argument '[email protected]:[org]/[repo].git' which wasn't expected, or isn't valid in this context

USAGE:
===>>>    choctaw_hog [FLAGS] [OPTIONS] <GITPATH> <<<===

Notice the usage changes depending on where I put the url. Is there something wrong in the docker image, or is this an issue on my part?

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