mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
2 files changed
+31
No files matched your search
+20
@@ -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
|
||||||
@@ -59,6 +59,17 @@ 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
|
### If you find a valid leak in a repo
|
||||||
Please read the [Github article on removing sensitive data from a repository](https://help.github.com/articles/removing-sensitive-data-from-a-repository/) to remove the sensitive information from your history.
|
Please read the [Github article on removing sensitive data from a repository](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
|
#### TODO
|
||||||
|
|
||||||
* Specify a target branch
|
* Specify a target branch
|
||||||
|
|||||||
Reference in new issue
Block a user