Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM python:3.11
COPY . /root/
WORKDIR /root/
RUN pip install -r requirements.txt
ENTRYPOINT ["python", "cred_scanner.py"]
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,19 @@ That will scan the local directory and all subdirectories. It will list the file
false matches due to the nature of secret keys.
--help Show this message and exit.

To run as a test in Jenkins just use the command line or add it as a step to your Jenkins build. Jenkins will automatically fail the build if it sees the exit code 1.
To run as a test in Jenkins just use the command line or add it as a step to your Jenkins build. Jenkins will automatically fail the build if it sees the exit code 1.


## Docker Usage:

* Build

```
docker build -t credscanner .
```

* Run:

```
docker run -v /home/user/development/git/somerepo:/mnt/ --rm -it credscanner --path /mnt/
```