Skip to content

chore: add org git hooks via Lefthook - #101

Merged
iqbalhasandev merged 2 commits into
mainfrom
chore/git-hooks
Oct 30, 2026
Merged

iqbalhasandev merged 2 commits into
mainfrom
chore/git-hooks

Conversation

@iqbalhasandev

Copy link
Copy Markdown
Member

Adds the DevWizardHQ git hooks to this repository through Lefthook, as a fallback for anyone who has not installed the org-wide hooks from DevWizardHQ/git-hooks.

The hooks block:

  • force pushes and deletion of main, master, dev and develop (deliberate feature-branch rewrites: ALLOW_FORCE_PUSH=1 git push --force-with-lease)
  • commits of .env files
  • secrets, when gitleaks is installed
  • PolinRider indicators (folderOpen VS Code tasks, *.orc loaders, the init file, payload signatures)

Setup: npm install installs the hooks automatically.

supply-chain-scan.yml now skips devwizard-checks.sh, which contains the indicator strings on purpose.

Local hooks can be bypassed; the force-push guard on GitHub is the backstop.

@iqbalhasandev iqbalhasandev added the enhancement New feature or request label Oct 30, 2026
@iqbalhasandev iqbalhasandev self-assigned this Oct 30, 2026
@iqbalhasandev
iqbalhasandev merged commit 5fd68a7 into main Oct 30, 2026
9 checks passed
@iqbalhasandev
iqbalhasandev deleted the chore/git-hooks branch October 30, 2026 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant