Error: The process '/usr/bin/git' failed with exit code 128
Closed this issue · 2 comments
charlesritchea commented
I'm using a fully permissive GITHUB_TOKEN
If I use a very old ubuntu 20.04 base image to run this it works, but if I build anything newer (even latest 20.04) I get this error using your plugin:
Run thomaseizinger/keep-a-changelog-new-release@2.0.0
/usr/bin/docker exec ee6db47427b4519a75090d994741ab3b31d447aa5a4cd81f8c4004d201458657 sh -c "cat /etc/*release | grep ^ID"
(node:144) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Error: The process '/usr/bin/git' failed with exit code 128
It would be nice to at least get the actual reason here
charlesritchea commented
This is a side effect of actions/checkout not creating a .git folder. Still trying to figure that out, but closing this issue then.
charlesritchea commented
Anyone else that encounters this
You need to have git installed in your container and run git config --global --add safe.directory "$GITHUB_WORKSPACE"
before doing anything else with git. actions/checkout does this already but it does not persist