Skip to content

Instantly share code, notes, and snippets.

@iknowjason
Last active February 16, 2022 19:00
Show Gist options
  • Save iknowjason/3560a04ae59afd57e6e8f1a5a99a4ca6 to your computer and use it in GitHub Desktop.
Save iknowjason/3560a04ae59afd57e6e8f1a5a99a4ca6 to your computer and use it in GitHub Desktop.
aws_key.toml and gitleaks docker in one line
# Credit and props to Manoel Abreu @reefbr - Thank you man!
# This one-liner uses dockerized gitleaks to detect a custom toml file with AWS access keys and secret
wget https://gist.githubusercontent.com/iknowjason/64914c08c0512f7380dbe7240812d69d/raw/6044896415ba9adc02a055fe774f67e31ecddad0/aws_key.toml; docker run --rm -v "$PWD:/script" -v <GIT_DIRECTORY_FULL_PATH>/:/code/ --name=gitleaks zricethezav/gitleaks -v detect -c=/script/aws_key.toml -p=/code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment