-
Just for clarification, I'm using a onedev agent running in a docker container on Linux and the image I am using for command execution is:
ghcr.io/cirruslabs/flutter:stable -
Are you able to run below command successfully in the container?
git clone https://username:@secret:ci-access-token@@@git.mydomain.com/project -
Running the command results in the same error message:
11:37:16 Cloning into 'project'... 11:37:16 remote: You do not have permission to pull from this project. 11:37:16 fatal: Authentication failed for 'https://git.mydomain.com/project/' -
This works at my side. Please make sure the access token is not expired and actually has permission to read code of
project -
I think I have found the cause of the error.
Adding aCheckout Codestep withClone Credentialset toDefaultbefore theExecute Commandsstep will cause this error. I have fixed it now by setting theClone CredentialtoHTTP(S). I don't really understand however how theCheckout Codestep would have this effect on the following step(s)?Anyway, thanks for pointing me in the right direction 😄
-
Previous Value Current Value Open
Closed
-
Checkout step will add below entries into .gitconfig, and this may interfere with your subsequent checkout. You may also run
git config --global --unset http.extraHeaderbefore your own clone command to see if it works.[http] extraHeader = OneDevAuthorization: Bearer *****
| Type |
Question
|
| Priority |
Normal
|
| Assignee | |
| Labels |
No labels
|
Hi,
I have a flutter project that uses internal dependencies that are hosted on my onedev server. I'm using
git config --global url.https://username:@secret:ci-access-token@@@git.mydomain.com/project.insteadOf ssh://git.mydomain.com/projectwith@secret:ci-access-token@being a token with owner privileges to redirect fromsshtohttpswhen using flutter pub get.For some reason I get the following error when trying to pull dependencies:
I don't really understand how that is possible since the token I have provided has owner privileges? Am I providing the credentials in the wrong way?