Skip to content

Masabi/git-secrets-pre-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-secrets-pre-commit

A set of pre-commit hook definitions for git-secrets.

git-secrets prevents you from committing passwords and other sensitive information to a git repository.

These hooks use Docker to run pre-commit, so it's not necessary to install it manually in the host.

Usage

Add this to your .pre-commit-config.yaml

- repo: https://github.com/Masabi/git-secrets-pre-commit
  rev: v0.1
  hooks:
    - id: git-secrets-scan
    - id: git-secrets-commit-msg
    - id: git-secrets-merge-check

and install:

pre-commit install -t pre-commit -t commit-msg -t prepare-commit-msg

Available hooks

git-secrets-scan

Scans all files that are about to be committed.

git-secrets-commit-msg

Checks the commit message for secrets.

git-secrets-merge-check

Determines if merging in a commit will introduce tainted history

Scanning all history

These hooks do not scan the repository history. For that, refer to the git-secrets docs.

About

pre-commit hook definitions for git-secrets.

Resources

License

Stars

Watchers

Forks

Packages

No packages published