Skip to content

Commit 65875c9

Browse files
committed
update .pre-commit-config.yaml example with new stage name and CLI version
1 parent 08ecc57 commit 65875c9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,26 +221,26 @@ Perform the following steps to install the pre-commit hook:
221221
```yaml
222222
repos:
223223
- repo: https://github.com/cycodehq/cycode-cli
224-
rev: v2.3.0
224+
rev: v3.0.0
225225
hooks:
226226
- id: cycode
227227
stages:
228-
- commit
228+
- pre-commit
229229
```
230230

231231
4. Modify the created file for your specific needs. Use hook ID `cycode` to enable scan for Secrets. Use hook ID `cycode-sca` to enable SCA scan. If you want to enable both, use this configuration:
232232

233233
```yaml
234234
repos:
235235
- repo: https://github.com/cycodehq/cycode-cli
236-
rev: v2.3.0
236+
rev: v3.0.0
237237
hooks:
238238
- id: cycode
239239
stages:
240-
- commit
240+
- pre-commit
241241
- id: cycode-sca
242242
stages:
243-
- commit
243+
- pre-commit
244244
```
245245

246246
5. Install Cycode’s hook:

0 commit comments

Comments
 (0)