Trying to do a simple git clone as shown and I've got 2 questions/Issues.
src := client.Git("git@github.foo/bar.git").Branch("master").Tree()
This returns the below.
#14 git://github.com/foo/bar.git#master
#0 0.120 Initialized empty Git repository in /var/lib/buildkit/runc-overlayfs/snapshots/snapshots/1289/fs/
#14 1.499 ERROR: The `foo' organization has enabled or enforced SAML SSO. To access
#14 1.499 this repository, you must use the HTTPS remote with a personal access token
#14 1.499 or SSH with an SSH key and passphrase
#14 1.499 that has been authorized for this organization. Visit
#14 1.499 https://docs.github.com/articles/authenticating-to-a-github-organization-with-saml-single-sign-on/ for more information.
#14 1.499
#14 1.499 fatal: Could not read from remote repository.
#14 1.499
#14 1.499 Please make sure you have the correct access rights
#14 1.499 and the repository exists.
#14 ERROR: failed to fetch remote git@github.com:foo/bar.git: exit status 128
- Despite having my ssh agent set, I'm getting an error - git clone the same shell (outside of dagger) on the same url works fine. I recall from a while back that the
ssh-agentshould be sufficient, not sure if I'm missing some step...? Any tips appreciated. - This step fails but the pipeline continues. This is rather shocking behavior. There doesn't appear to be a clear way to return an error from git clone. Is there some api I don't know about?