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

add openssh to docker image #719

Merged
merged 1 commit into from Nov 10, 2021
Merged

add openssh to docker image #719

merged 1 commit into from Nov 10, 2021

Conversation

jaffee
Copy link
Contributor

@jaffee jaffee commented Nov 3, 2021

I'm trying to scan a project which has dependencies which are private projects. When Go tries to fetch the dependencies it normally uses HTTPS, but that doesn't work if they're private (terminal prompts disabled, can't enter username/password). So you do this little trick with git configuration to get Go to fetch dependencies over ssh: GIT_CONFIG_PARAMETERS=url.ssh://git@github.com/.insteadOf=https://github.com/
unfortunately the docker image doesn't have ssh installed so this doesn't work :)

@ccojocar
Copy link
Member

ccojocar commented Nov 9, 2021

@jaffee How much does the image size increases when adding openssh?

@codecov-commenter
Copy link

Codecov Report

Merging #719 (52de346) into master (0680c75) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #719   +/-   ##
=======================================
  Coverage   69.60%   69.60%           
=======================================
  Files          47       47           
  Lines        2859     2859           
=======================================
  Hits         1990     1990           
  Misses        813      813           
  Partials       56       56           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0680c75...52de346. Read the comment docs.

@jaffee
Copy link
Contributor Author

jaffee commented Nov 9, 2021

@ccojocar if I'm doing this right (make image) it's about a 1% increase (5MB)

securego/gosec                                                     v2.9.1-3-g52de346   30f30e1248ff   9 seconds ago    451MB
securego/gosec                                                     v2.9.1-6-g55c6cea   39bdb43ba13d   34 minutes ago   446MB

I'm trying to scan a project which has dependencies which are private projects. When Go tries to fetch the dependencies it normally uses HTTPS, but that doesn't work if they're private (terminal prompts disabled, can't enter username/password). So you do this little trick with git configuration to get Go to fetch dependencies over ssh: `GIT_CONFIG_PARAMETERS=url.ssh://git@github.com/.insteadOf=https://github.com/`
unfortunately the docker image doesn't have ssh installed so this doesn't work :)
@jaffee
Copy link
Contributor Author

jaffee commented Nov 9, 2021

just rebased on master, but image size didn't change

@ccojocar
Copy link
Member

@jaffee Thanks for clarification. It looks good to me. I'll merge it in.

@ccojocar ccojocar merged commit 3eba7b8 into securego:master Nov 10, 2021
@jaffee jaffee deleted the patch-1 branch November 10, 2021 20:44
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

Successfully merging this pull request may close these issues.

None yet

3 participants