Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save NoDataFound/0bb3ca3d3cb1bb4b92698e708eb08918 to your computer and use it in GitHub Desktop.
Save NoDataFound/0bb3ca3d3cb1bb4b92698e708eb08918 to your computer and use it in GitHub Desktop.
gitleaks scan to csv one liner
gitleaks detect --source . -v -l debug -r "git_sh1t.json" -f json | echo "Commit,File,Match,Author,Email,Date" > git_sh1t.csv && jq -r '.[] | "\(.Commit),\(.File),\(.Match),\(.Author),\(.Email),\(.Date)"' git_sh1t.json | sort | uniq >> git_sh1t.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment