Drone cli - exec WILL NOT pull from private registry

I am using Docker builds, and my docker images run as a user. When drone checks out the code, its as root with permissions rwxr-xr-x - which means that when my build starts, I cant write to the /drone/src folder.

I am working around this for now by running a chmod -R user:user which works well enough, but I don’t want to have to do that since the point is that none of these should be running as root.

How can I pass a checkout as context to drone, so that when it runs git, it runs it as user and not as root?