Skip to content
New issue

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

Question: Choctaw Github SSH Key Errors #52

Open
bp4151 opened this issue Apr 28, 2023 · 1 comment
Open

Question: Choctaw Github SSH Key Errors #52

bp4151 opened this issue Apr 28, 2023 · 1 comment

Comments

@bp4151
Copy link

bp4151 commented Apr 28, 2023

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?

@bp4151
Copy link
Author

bp4151 commented Apr 28, 2023

Digging deeper, it looks like the Docker image is one version behind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant