Skip to content

Instantly share code, notes, and snippets.

@carhartl
Created September 23, 2021 14:27
Show Gist options
  • Save carhartl/6aad6bea1974f79054dced837a1f9152 to your computer and use it in GitHub Desktop.
Save carhartl/6aad6bea1974f79054dced837a1f9152 to your computer and use it in GitHub Desktop.
Lefthook pre-push script with Talisman
pre-push:
scripts:
secrets-audit:
runner: sh
#!/bin/sh
set -eu
while read -r local_ref local_sha remote_ref remote_sha; do
echo "$local_ref $local_sha $remote_ref $remote_sha" | talisman --githook pre-push
done
exit 0
@carhartl
Copy link
Author

This evilmartians/lefthook#147 needs to be fixed for this to work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment