Skip to content

Check for secret material

gitleaks

Install:

sudo pacman -S gitleaks

Scan git history:

gitleaks detect -v

Ignore/allow false-positives:

  • Add a # gitleaks:allow at the end of the line with an allowed false-positive
  • For retroactive ignores from already committed false-positives add the fingerprint shown by gitleaks detect -v to a .gitleaksignore, see this repos .gitleaksignore as example

secretlint

Install:

eget secretlint/secretlint

Run using podman:

alias secretlint="podman run -v `pwd`:`pwd` -w `pwd` --rm -it docker.io/secretlint/secretlint secretlint '**/*'"

ripsecrets

talisman

https://github.com/thoughtworks/talisman/

If you are sure you want to ignore detected secret material:

echo 'aarwolf.yaml # ignore:filecontent' >> .talismanignore

Issues:

git-secrets