-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git Clone unsafe repository #4966
Comments
@aceeric did you find a solution for this? I'm having similar trouble when using an AWS EFS Access point as workspace:
|
@v1nc3nt27 I settled on a work-around. I modified the upstream https://github.com/tektoncd/catalog/blob/main/task/git-clone/0.6/git-clone.yaml before deploying the
|
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
@aceeric Thanks for the workaround. Would a PR to the catalog solve this issue, or do you think this is something that needs to be fixed on pipeline side? |
Honestly @afrittoli it's hard to say - not being an expert in the tool. Fundamentally the catalog task is (presently) wanting to use the pipeline image in a way that seems incompatible with the image. So - should the image in the pipeline be modified to not require the additional line of shell? Part of that IMO is determined by which - if any - other Tekton components use that image and what impact there would be of changing the pipeline. Sorry for not having a better answer... |
@aceeric it looks like this issue may be resolved by @jhonis's PR tektoncd/catalog#1092 to the git clone catalog task so I'm going to close this issue; please feel free to reopen if the problem is not resolved. |
Sounds good - thank you. |
Expected Behavior
Using Pipelines 0.36.0, Create a
TaskRun
to git clone a repository results in successActual Behavior
Fails with error:
Exit status 128 fatal // Unsafe repository ('/workspace/output' is owned by someone else) // To add an exception for this directory, call: git config --global --add safe.directory /workspace/output
Additional info
Based on #4756 being merged in April and 0.36.0 being cut in June, I thought this would be resolved in 0.36.0.
Steps to Reproduce the Problem
kubectl apply -f https://storage.googleapis.com/tekton-releases/pipeline/previous/v0.36.0/release.yaml
kubectl apply
the manifestTaskRun
with this manifest, following guidance here to run as non-rootObserve the
TaskRun
fails with error:The text was updated successfully, but these errors were encountered: