planetscale / ghcommit-action

GitHub Action to commit files to a git branch using the ghcommit utility
Apache License 2.0
30 stars 4 forks source link

Git crypt sometimes fails #75

Open gladykov opened 1 week ago

gladykov commented 1 week ago

We use git crypt and it works properly in Github actions. But with this action it (sometimes) fails:

"git-crypt" clean: line 0: git-crypt: not found
error: external filter '"git-crypt" clean' failed 127
error: external filter '"git-crypt" clean' failed
fatal: mmc/test/pats.ts: clean filter 'git-crypt' failed

Full log: log.txt

As it is not 100% reproducible, hard to tell why. But I suspect that adding git-crypt here https://github.com/planetscale/ghcommit-action/blob/main/Dockerfile could help.

Let me know if you would be open for PR.

joemiller commented 1 week ago

I'm not familiar with git-crypt. The base image we use pulls apk packages from the upstream wolfi-os distro. I don't see a git-crypt package available there, however - https://github.com/wolfi-dev/os. First step might be to submit a git-crypt package definition to wolfi.

gladykov commented 1 week ago

Thx! Will try there and see how it will go