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

Add safe directory flag to avoid checks crashing #16

Merged
merged 1 commit into from
Feb 28, 2023
Merged

Conversation

avahoffman
Copy link
Contributor

@avahoffman avahoffman commented Feb 28, 2023

Some weirdness has been happening with spell, url, and quiz checks. I think this is tied to checkout v3 updates and has something to do with credentials, who is committing what, etc. Related post here.

Are there any issues with the following solution?

The error

Basically, we get this error on the spell, url, and quiz checks:

 fatal: --local can only be used inside a git repository
Error: Process completed with exit code 128.

image

See Example, look at spell check

Solution

Adding the repo as a safe directory seems to fix the issue when the workflow is in a local file.

image

Fixed example

@avahoffman avahoffman requested a review from cansavvy February 28, 2023 22:14
Copy link
Contributor

@cansavvy cansavvy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for identifying and addressing this bug!! Looks good to me!

@cansavvy cansavvy merged commit ec63dc4 into main Feb 28, 2023
@cansavvy cansavvy deleted the git-funkiness branch February 28, 2023 23:18
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.

2 participants