ADD_installation_from_bin

ADD_installation_from_bin
This commit is contained in:
Lucas Alcântara authored and GitHub committed 2021-10-13 16:41:36 -03:00
1 parent 2161ff358b
commit d2e1e43a25
1 file changed
+10
+10
View File
@@ -62,6 +62,16 @@ Go 1.16+ required.
```bash
GO111MODULE=on go get github.com/zricethezav/gitleaks/v7
```
##### From bin:
Curl required:
``` #!/bin/bash
GITLEAKS_VERSION=$(curl -s https://api.github.com/repos/zricethezav/gitleaks/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")') && wget https://github.com/zricethezav/gitleaks/releases/download/$GITLEAKS_VERSION/gitleaks-linux-amd64
mv gitleaks-linux-amd64 gitleaks
chmod +x gitleaks
sudo mv gitleaks /usr/local/bin/
```
##### As a pre-commit hook
See [pre-commit](https://github.com/pre-commit/pre-commit) for instructions.