Explorar o código

Merge pull request #662 from lucas-apd/patch-1

ADD_installation_from_bin
Ramon %!s(int64=4) %!d(string=hai) anos
pai
achega
5afe59d2fa
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      README.md

+ 10 - 0
README.md

@@ -62,6 +62,16 @@ Go 1.16+ required.
 ```bash
 ```bash
 GO111MODULE=on go get github.com/zricethezav/gitleaks/v7
 GO111MODULE=on go get github.com/zricethezav/gitleaks/v7
 ```
 ```
+
+##### From 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
 ##### As a pre-commit hook
 
 
 See [pre-commit](https://github.com/pre-commit/pre-commit) for instructions.
 See [pre-commit](https://github.com/pre-commit/pre-commit) for instructions.