Skip to content

A simple python script to scan local files and directories for secrets using the GitGuardian API

Notifications You must be signed in to change notification settings

techwithmack/directoryscanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Directory Secret Scanner

This is a simple python script that detects secrets in local files and directories using the GitGuardian API and python wrapper. It is created to help everyone understand how to use GitGuardian API to be able to create custom secrets detection.

To use this script get an api token from the GitGuardian Dashboard and save it in a .env file

For more checkout the Blog post or YouTube video

Terminology Policy Break: GitGuardian scans more than just secrets, we also scan for high risk file extension (example: keystore) and file names (example: .env), when we detect something that breaks the rules of our policies, we call this a policy break.

Match: A match is the component that triggered a policy break, for example the match of a detected secret will be the secret string itself. A policy break can >have multiple matches.

About

A simple python script to scan local files and directories for secrets using the GitGuardian API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages