I am trying to sync repositories for a user created via the DRONE_USER_CREATE=username:[-gogs_username-],machine:false,admin:true,token:[-drone_token-] env var inside docker.
The user is created fine and I can verify this by making a get request Authorized with the token to /api/user.
For some reason the repositories refuse to sync until after I have manually logged in on the dashboard.
I tried sending a post with the login credentials to the login endpoint but that did not trigger an update for the login field on the user object returned.
I’m 100% sure I’m using correct authentication as it works on all other endpoints, tested in-code and via postman/browser.
Happy to send more info if required.