drone injects a .netrc file into the container which is what git (more precisely curl) uses.
if you cat ~/.netrc (do not remember the exact location )
you should see something like this
Dumb question: How do I CHANGE the token injected here?
(engineer who setup drone left the company. Every setting I can find in Drone points to the github enterprise service account which should do this. But SOMETHING is magically tied to their github enterprise user, and I’m trying to find/change/override it so our CI/CD system works again)
Thank you! I’ve been beating my head on this for a week…
For future reference, the major symptom we saw was “Your account has been suspended” in the drone server logs (docker logs) after the account was suspended.
Hmm I simply cannot find where this is injected…! It’s not documented anywhere, we are working with a custom Alpine docker plugin. Attempting to clone a private repo using the same credentials that we assume are inside .netrc? But cant find it inside the plugin container.