Skip to content

Stale sh-hook trunk action blocks every local commit (.github/hook.sh removed) #445

@ss-o

Description

@ss-o

Problem

.trunk/trunk.yaml defines and enables a custom action:

- id: sh-hook
  triggers:
    - git_hooks: [pre-push, pre-commit]
  run: .github/hook.sh

but .github/hook.sh was deleted in e3fd962 (feat(agents): add memory-curator and workspace-architect; clean up stale files). With trunk-managed git hooks installed, every git commit / git push in a local clone now fails:

sh-hook: line 1: .github/hook.sh: No such file or directory
✖ Commit blocked by git hook 'sh-hook'

Workaround until fixed: git commit --no-verify.

Fix options

  • Remove the sh-hook entry from actions.enabled and actions.definitions in .trunk/trunk.yaml (preferred if the hook is no longer needed), or
  • Restore .github/hook.sh with its intended content.

Triage suggestion

  • Type: bug, Priority: high (blocks all local commits), Effort: trivial

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ciContinuous integration or GitHub Actions work.type:bugSomething is broken or behaving incorrectly.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions