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

ci: set workspace directory as safe after checkout #411

Merged
merged 1 commit into from May 7, 2022

Conversation

wagoid
Copy link
Owner

@wagoid wagoid commented May 7, 2022

Related to actions/checkout#760

actions/checkout already fixed the issue on their side in
v3.0.1.
But since this is a container action, it can be run with another uid than the one
from actions/checkout and therefore we need to add the safe.directory config again.

Another way of fixing this would be to make this action run with the same uid as the github runner, but as mentioned here we're not sure whether the 1000 uid of the runner is reliable.

The different uid issue seems more like a Github Actions ecosystem problem, maybe they'll take care of it later.

@wagoid wagoid force-pushed the ci/fix-unsafe-repository-issue branch from dd1460f to 5dfd1e2 Compare May 7, 2022 09:24
`actions/checkout` already fixed the issue on their side in
[v3.0.1](https://github.com/actions/checkout/releases/tag/v3.0.1).
But since this is a container action, it can be run with another uid than the one
from `actions/checkout` and therefore we need to add the `safe.directory` config again.

Another way of fixing this would be to make this action run with the same uid as the github runner,
 but as mentioned [here](actions/checkout#760 (comment))
we're not sure whether the `1000` uid of the runner is reliable.

The different `uid` issue seems more like a Github Actions ecosystem problem,
maybe they'll take care of it later.
@wagoid wagoid force-pushed the ci/fix-unsafe-repository-issue branch from 5dfd1e2 to ce9a8cb Compare May 7, 2022 09:34
@wagoid wagoid merged commit 0f5f7da into master May 7, 2022
@wagoid wagoid deleted the ci/fix-unsafe-repository-issue branch May 7, 2022 09:37
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.

None yet

1 participant