jupyterhub / repo2docker-action

A GitHub action to build data science environment images with repo2docker and push them to registries.
MIT License
140 stars 27 forks source link

Fatal error: Git permissions error on commit local Dockerfile for Binder cache #89

Closed wragge closed 2 years ago

wragge commented 2 years ago

Describe the bug Docker builds with BINDER_CACHE set to True suddenly started failing with the error:

Commit Local Dockerfile For Binder Cache
  fatal: unsafe repository ('/github/workspace' is owned by someone else)
  To add an exception for this directory, call:

    git config --global --add safe.directory /github/workspace

It seems this is due to a security issue in Git: https://github.com/actions/checkout/issues/760

welcome[bot] commented 2 years ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

dgerosa commented 2 years ago

I'm also having the same issue.

yuvipanda commented 2 years ago

Fixed in https://github.com/jupyterhub/repo2docker-action/pull/90 thanks to @jerrybonnell!