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

Change git config scope from global to system #1193

Closed
wants to merge 3 commits into from
Closed

Change git config scope from global to system #1193

wants to merge 3 commits into from

Conversation

moorara
Copy link

@moorara moorara commented Mar 1, 2023

Description

Fixes #1169

The /github/home/.gitconfig does not seem to exist in the container even after git checkout. As a result, the project directory (with .git directory in it) will not be considered as a safe directory and any further action that relies on a git will fail.

This PR will change the scope of git config command from global to system.

@moorara moorara requested a review from a team as a code owner March 1, 2023 22:28
moorara added 3 commits March 1, 2023 17:48

Verified

This commit was signed with the committer’s verified signature.
LebedevRI Roman Lebedev
@moorara moorara closed this Mar 1, 2023
@moorara moorara deleted the fix-git-config-issue branch March 1, 2023 23:26
@LecrisUT
Copy link

Can retry this PR with a check if the action is run in container or not? That should fix this

@liskin
Copy link

liskin commented Jun 15, 2024

Can retry this PR with a check if the action is run in container or not? That should fix this

Fix what? Is there an issue setting this globally?

@moorara Why was this closed? #1169 is still an issue a year later 😞

@moorara
Copy link
Author

moorara commented Jun 17, 2024

@liskin Sorry, it's been a while and I don't quite remember the details, but I do remember this approach does not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/github/home/.gitconfig does not exist for container runs
3 participants