Open NullOranje opened 1 year ago
This seems to be an issue with houdini/Docker for Mac. Running this on a Kubernetes cluster on the same Docker for Mac instance with containerd does not encounter this issue.
Alternative workaround if you work on a local concourse instance:
git_config:
- name: safe.directory
value: /tmp/build/get
Alternative workaround if you work on a local concourse instance:
git_config: - name: safe.directory value: /tmp/build/get
This has worked for me on the get
step but having the same issue now in the put
step as
Identity added: /tmp/git-resource-private-key (/tmp/git-resource-private-key)
fatal: detected dubious ownership in repository at '/tmp/build/put/repo'
To add an exception for this directory, call:
git config --global --add safe.directory /tmp/build/put/repo
git_config:
- name: safe.directory
value: '*'
Solved the issues for me
this didnt solve issue for me :(
git_config: - name: safe.directory value: '*'
Solved the issues for me
Question, where do you writ that, because, i tried on the task, on the resource section, and not be able to works
Even I try this. but still failing
resources:
- name: concourse-examples
type: git
icon: github
check_every: 30m
source:
uri: https://github.com/concourse/examples
branch: master
safe_directory: /tmp/build/*
git_config: - name: safe.directory value: '*'
Solved the issues for me
Question, where do you writ that, because, i tried on the task, on the resource section, and not be able to works
Even I try this. but still failing
resources: - name: concourse-examples type: git icon: github check_every: 30m source: uri: https://github.com/concourse/examples branch: master safe_directory: /tmp/build/*
Like this
resources:
- name: repo
type: git
source:
uri: https://github.com/foo.git
# this is to avoid git permission error.
git_config:
- name: safe.directory
value: '*'
git_config: - name: safe.directory value: '*'
Solved the issues for me
Question, where do you writ that, because, i tried on the task, on the resource section, and not be able to works Even I try this. but still failing
resources: - name: concourse-examples type: git icon: github check_every: 30m source: uri: https://github.com/concourse/examples branch: master safe_directory: /tmp/build/*
Like this
resources: - name: repo type: git source: uri: https://github.com/foo.git # this is to avoid git permission error. git_config: - name: safe.directory value: '*'
Have the same issue, i can not be able to get the repo, because I don't know where i can put those lines.
@pm3ndoza not sure what you mean. I show where you need to put those lines in the example above.
Describe the bug
When attempting to get a
git-resource
, we receive the git errordetected dubious ownership
instead of pulling the source code.Reproduction steps
Deploy concourse quickstart using provided docker-compose.yml (using Concourse 7.9.1)
Deploy a simple pipeline:
Receive the following error: