Created
September 23, 2021 14:27
-
-
Save carhartl/6aad6bea1974f79054dced837a1f9152 to your computer and use it in GitHub Desktop.
Lefthook pre-push script with Talisman
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pre-push: | |
scripts: | |
secrets-audit: | |
runner: sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This evilmartians/lefthook#147 needs to be fixed for this to work!