Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sgaunet/pre-commit
https://github.com/sgaunet/pre-commit
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sgaunet/pre-commit
- Owner: sgaunet
- License: mit
- Created: 2023-08-24T11:16:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-27T14:23:37.000Z (over 1 year ago)
- Last Synced: 2023-08-27T16:04:03.189Z (over 1 year ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This repository contains hooks for [pre-commit](https://pre-commit.com/hooks.html).
# osv-scanner
Execute the osv-scanner to search vulneravilities in dependencies.
To use it:
```
repos:
- repo: https://github.com/sgaunet/pre-commit
rev: v0.2.0
hooks:
- id: osv-scanner
```[You need to install osv-scanner.](https://github.com/google/osv-scanner)
# govulncheck
Execute the govulncheck to search vulneravilities in golang dependencies.
To use it:
```
repos:
- repo: https://github.com/sgaunet/pre-commit
rev: v0.2.0
hooks:
- id: govulncheck
```[You need to install govulncheck.](https://go.googlesource.com/vuln)
# gitleaks
Execute the gitleaks to search leaks in git.
To use it:
```
repos:
- repo: https://github.com/sgaunet/pre-commit
rev: v0.2.0
hooks:
- id: gitleaks
```[You need to install gitleaks.](https://github.com/gitleaks/gitleaks)
# Development
A reminder when developping new hooks. You can test the hooks by executing this command in the repository you want to execute hooks:
```
pre-commit try-repo ../../../GITHUB/PUBLIC/pre-commit osv-scanner --verbose --all-files
```