Skip to content

Commit

Permalink
Improved logic for pulling gitleaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Plazmaz committed Mar 1, 2020
1 parent 8c99112 commit 5cc7931
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .leaky-meta/,gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
gitleaks-config.toml
*.toml
3 changes: 2 additions & 1 deletion .leaky-meta/install-test-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ fi

mkdir -p ~/.local/bin
if ! type "gitleaks" > /dev/null; then
wget https://github.com/zricethezav/gitleaks/releases/download/v4.0.1/gitleaks-linux-amd64 -O ~/.local/bin/gitleaks
latest=$(curl -s https://api.github.com/repos/zricethezav/gitleaks/releases/latest |grep "browser_download_url.*linux-amd64" |cut -d : -f 2,3 | tr -d '"')
wget $latest -O ~/.local/bin/gitleaks
chmod +x ~/.local/bin/gitleaks
fi
wget https://raw.githubusercontent.com/zricethezav/gitleaks/master/examples/leaky-repo.toml -O gitleaks-config.toml
Expand Down

0 comments on commit 5cc7931

Please sign in to comment.