From d2e1e43a25528fae4a6e92fe0cb57eb393959785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Alc=C3=A2ntara?= Date: Wed, 13 Oct 2021 16:41:36 -0300 Subject: [PATCH 1/2] ADD_installation_from_bin ADD_installation_from_bin --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 4f40b6d3..a96faa21 100644 --- a/README.md +++ b/README.md @@ -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. From 8adf27b1ea6bdf337c63a4e0919853f7951b94e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Alc=C3=A2ntara?= Date: Tue, 19 Oct 2021 09:50:39 -0300 Subject: [PATCH 2/2] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a96faa21..60a00f38 100644 --- a/README.md +++ b/README.md @@ -64,8 +64,8 @@ GO111MODULE=on go get github.com/zricethezav/gitleaks/v7 ``` ##### From bin: -Curl required: -``` #!/bin/bash + +```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