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

git clone #7

Closed
1 task
bpmct opened this issue Sep 18, 2023 · 7 comments
Closed
1 task

git clone #7

bpmct opened this issue Sep 18, 2023 · 7 comments
Assignees
Labels
coder_script Needs `coder_script` module-idea A new module idea or suggestion

Comments

@bpmct
Copy link
Member

bpmct commented Sep 18, 2023

git clone module to detect if repo exists and clone it

Nice to have

  • Support forking instead of clone with gh CLI (we could support other clouds down the road).
@bpmct bpmct added the module-idea A new module idea or suggestion label Sep 18, 2023
@matifali matifali added the coder_script Needs `coder_script` label Sep 18, 2023
@matifali
Copy link
Member

Feel free to skip forking if it takes time. We can add that later, maybe.

@matifali matifali assigned kylecarbs and unassigned stirby Sep 26, 2023
@matifali
Copy link
Member

closed in #46

@Gaming4LifeDE
Copy link

How are you supposed to deal with host key verification errors when using ssh clone URL's? The script doesn't implement a way to add the host key (ssh-keyscan, etc...)

@matifali
Copy link
Member

matifali commented Nov 2, 2023

The assumption is that a coder workspace is pre authenticated with GitHub with an OIDC token.
See https://coder.com/docs/v2/latest/admin/git-providers for future details.

@Gaming4LifeDE
Copy link

The idea is good. Problem is that I'm trying to authenticate against a private gitlab instance

@Gaming4LifeDE
Copy link

also, why have a ssh key and commands like 'coder gitssh' when it's not usable for cloning with the module?

@matifali
Copy link
Member

matifali commented Nov 2, 2023

You should be able to configure GitLab private instance as an external auth provider using the following docs
https://docs.gitlab.com/ee/integration/oauth_provider.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
coder_script Needs `coder_script` module-idea A new module idea or suggestion
Projects
None yet
Development

No branches or pull requests

5 participants