alexvasilkov / alexvasilkov/GradleGitDependenciesPlugin

I can't connect to a private repo anymore

Offen
#30 6 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Groovy
Sterne
109
Forks
15
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I reopened a project where I was using a private repo with HTTPS authentication and an AuthGroup, it worked fine but it seems we can't use this type of authentication with Github anymore (if I'm not mistaken).

I didn't find how to use an access token (I tried replace the password by the token), so I tried with SSH but got the following error:

```
Failed to notify build listener.
> Invalid remote: origin
````

I try if my SSH connexion is valid with `ssh -T git@github.com` and it works fine : `Hi fabriceci! You've successfully authenticated, but GitHub does not provide shell access.`

Here if my config:
```
git {
implementation 'git@github.com:fabriceci/xxx.git', {
authGroup 'ssh'
keepUpdated false
}
}
```

I was not sure, but I put my SSH password in my gradle properties file (As I used to do before the classic user/pass connection) :

```
git.ssh.password=xxx
```

Have you an idea how to solve this?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.