-
Notifications
You must be signed in to change notification settings - Fork 515
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
go build fails to read vcs info when .git is owned by a different user #452
Comments
Same here, it messed up our CI/CD on GitHub Actions. test:
name: Test
runs-on: ubuntu-latest
container: golang:1.19
steps:
- name: Test the code
run: go test ./... Output:
We fixed it by using the previous version of the container: container: golang@sha256:bb9811fad43a7d6fd2173248d8331b2dcf5ac9af20976b1937ecd214c5b8c383 |
Can confirm a similar issue in our CI/CD pipelines. In addition if you run
What's curious is
|
The interesting thing is that But for some reason it still doesn't work. If you manually add it, it starts to work: - name: Check out repository code
uses: actions/checkout@v3
- name: Set workspace as safe
run: git config --global --add safe.directory $GITHUB_WORKSPACE Weird. |
Looks like this is due to git update that backports CVE fixes in debian bullseye and bumps the version to |
The best solution here is probably going to be using |
Closing as this is not something we can work around generally and safely in the image and is the result of a CVE fix in |
golang:bullseye built-in install git(2.30.2) which break our CI/CD system.
golang/go#53532
The text was updated successfully, but these errors were encountered: