How to run drone exec with private repository

I’m working on my github private repo and added this kind of .drone.yml:

    image: golang
      - go get -d ./...
      - go test -v ./...

Now when I run drone exec to test locally, I get this error fatal: could not read Username for '': terminal prompts disabled when cloning the repo.
I know this is a typical go problem when working with private repositories, but I don’t know how to solve it with drone exec

1 Like