Permission issue with Gitlab Project Directory

Hello,

I have changed my working directory /usr/test and user as — user test and now my gitlab-runner process also running with this changed working directory and user.

Now when I run my pipeline Git initialise from /usr/test but inside that what ever directory creates it is creating with root ownership so what should I do to change this ownership from root to test. Like whenever I execute job project directory should be created with ownership as test instead of root.

Thanks and Regards,
Naman

Could anyone please respond?

Hi @Njain213,

Thank you for posting a question about your permissions issue. I’m still new to using GitLab runners, but I did find an issue about options to use gitlab-runner as a non-root user. Hopefully, you’re able to find a solution in the comments!