Skip to content
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

fatal: detected dubious ownership in repository #59

Closed
fujidaiti opened this issue Feb 28, 2024 · 0 comments · Fixed by #60
Closed

fatal: detected dubious ownership in repository #59

fujidaiti opened this issue Feb 28, 2024 · 0 comments · Fixed by #60
Assignees
Labels
bug Something isn't working CI/CD CI/CD related P1

Comments

@fujidaiti
Copy link
Owner

In the dry_run workflow:

Failed to run `rev-parse --show-toplevel`.\nfatal: detected dubious ownership in repository at '/github/workspace'\nTo add an exception for this directory

It seems that this error has appeared after the fix of CVE-2022-24765 in Git. Could it be due to an update to the Git version installed in the CI runner?

@fujidaiti fujidaiti added bug Something isn't working CI/CD CI/CD related labels Feb 28, 2024
@fujidaiti fujidaiti self-assigned this Feb 28, 2024
@fujidaiti fujidaiti added the P1 label Feb 28, 2024
fujidaiti added a commit that referenced this issue Feb 28, 2024
fujidaiti added a commit that referenced this issue Feb 28, 2024
A workaround for #59. 

Attempted to add `$GITHUB_WORKSPACE` to `safe.directory` of Git in #58,
but it didn't work. For now, I disabled the `dart-package-analyzer` and
changed to directly run the `pana` instead.

I'll try again in the feature.
@fujidaiti fujidaiti linked a pull request Feb 28, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CI/CD CI/CD related P1
Projects
None yet
1 participant