You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/developer-guide/introduction.mdx
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,6 +134,22 @@ prek installed at `.git/hooks/pre-commit`
134
134
If pre-commit hooks were previously installed, run `prek install --overwrite` to replace the existing hook. Otherwise, both tools will run on each commit.
135
135
</Warning>
136
136
137
+
#### Enable TruffleHog as a Pre-Push Hook
138
+
139
+
By default, only `pre-commit` hooks are installed. To enable [`TruffleHog`](https://github.com/trufflesecurity/trufflehog) secret scanning on every push, install the `pre-push` hook type explicitly:
140
+
141
+
```shell
142
+
prek install --hook-type pre-push
143
+
```
144
+
145
+
Successful installation should produce the following output:
146
+
147
+
```shell
148
+
prek installed at `.git/hooks/pre-push`
149
+
```
150
+
151
+
Once installed, TruffleHog runs before each push and blocks the operation when verified secrets are detected.
152
+
137
153
### Code Quality and Security Checks
138
154
139
155
Before merging pull requests, several automated checks and utilities ensure code security and updated dependencies:
0 commit comments