Skip to content

Commit

Permalink
chore(husky): move ggshield to pre-push
Browse files Browse the repository at this point in the history
  • Loading branch information
PunGrumpy committed Apr 7, 2024
1 parent af3445f commit a43b338
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
6 changes: 1 addition & 5 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

bun lint:staged

if [ -x "$(command -v ggshield)" ]; then
ggshield secret scan pre-commit
fi
bun lint:staged
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

exec < /dev/tty && ggshield secret scan "origin" || true
12 changes: 0 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,5 @@
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"prepare-commit-msg": "exec < /dev/tty && bunx cz --hook || true",
"pre-push": "ggshield secret scan"
}
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}

0 comments on commit a43b338

Please sign in to comment.