From d9d87410e2e004d40d67b63be022cda0be8fea59 Mon Sep 17 00:00:00 2001 From: Raphael ATALLAH <4487892+devnixs@users.noreply.github.com> Date: Thu, 22 Feb 2018 08:59:59 +0100 Subject: [PATCH 1/3] Added dockerfile --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..7a9cba68 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM golang:1.10.0-alpine3.7 + +WORKDIR /app + +RUN apk update && apk upgrade && apk add --no-cache bash git openssh + +COPY . ./ + +RUN go get -u github.com/zricethezav/gitleaks +RUN go build + +ENTRYPOINT ["gitleaks"] + + +# How to use me : + +# docker build -t gitleaks . +# docker run --rm --name=gitleaks gitleaks https://github.com/zricethezav/gitleaks + +# This will check for secrets in https://github.com/zricethezav/gitleaks From 5d995c05a2a746946cc739bdf1aaa9e7775cdae8 Mon Sep 17 00:00:00 2001 From: Raphael ATALLAH <4487892+devnixs@users.noreply.github.com> Date: Thu, 22 Feb 2018 09:01:37 +0100 Subject: [PATCH 2/3] Updated Readme : added docker doc --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 85029933..eaee8165 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,16 @@ NOTE: your mileage may vary so if you aren't getting the results you expected tr ### If you find a valid leak in a repo Please read https://help.github.com/articles/removing-sensitive-data-from-a-repository/ to remove the sensitive information from your history +### Run me with docker + +Simply run `docker run --rm --name=gitleaks raphaelareya/gitleaks https://github.com/zricethezav/gitleaks` + +Or build the image yourself to get the latest version : +` +docker build -t gitleaks . +docker run --rm --name=gitleaks gitleaks https://github.com/zricethezav/gitleaks +` + #### TODO * Specify a target branch From 1d3d9b59839b120e4196060d02cb65fd02b358a6 Mon Sep 17 00:00:00 2001 From: Raphael ATALLAH <4487892+devnixs@users.noreply.github.com> Date: Thu, 22 Feb 2018 09:02:31 +0100 Subject: [PATCH 3/3] Added line break --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index eaee8165..2c2aae88 100644 --- a/README.md +++ b/README.md @@ -64,10 +64,11 @@ Please read https://help.github.com/articles/removing-sensitive-data-from-a-repo Simply run `docker run --rm --name=gitleaks raphaelareya/gitleaks https://github.com/zricethezav/gitleaks` Or build the image yourself to get the latest version : -` + +``` docker build -t gitleaks . docker run --rm --name=gitleaks gitleaks https://github.com/zricethezav/gitleaks -` +``` #### TODO