The module will create an efs access point, with the root directory belonging to jenkins, but the all the operation are done as root. (uid=0)
Therefore all the files will belong to root and git will complain about fatal: detected dubious ownership in repository.
What is the purpose of mapping to root here?
What is the correct way of allowing git checkouts with that?
https://github.com/aws-samples/serverless-jenkins-on-aws-fargate/blob/main/modules/jenkins_platform/efs.tf#L24-L35
The module will create an efs access point, with the root directory belonging to jenkins, but the all the operation are done as root. (uid=0) Therefore all the files will belong to root and git will complain about
fatal: detected dubious ownership in repository
.What is the purpose of mapping to root here? What is the correct way of allowing git checkouts with that?