fix: entrypoint.sh is not executable, every run fails with exit 126 #1
Loading…
Reference in a new issue
No description provided.
Delete branch "butterrobot/fix-entrypoint-exec-bit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
entrypoint.sh is committed with mode 0644 while action.yml runs it directly as
${{ github.action_path }}/entrypoint.sh, so the action fails before the script starts with 'entrypoint.sh: Permission denied' and exitcode 126 — the SSH key is never read, which makes it look like an auth failure. Sets the exec bit, and also invokes via 'sh' so the action no longer depends on the mode bit surviving a checkout. Found while deploying fmartingr/fmartingr.com (FMG-7).