Skip to content

Commit

Permalink
Merge pull request #4 from travisdonnell/AddTruffleHog
Browse files Browse the repository at this point in the history
bad rebase
  • Loading branch information
travisdonnell authored Oct 8, 2019
2 parents 3cf5799 + 7956c25 commit 020bc76
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ RUN make install
# detect-secrets
RUN pip install detect-secrets

# trufflehog
RUN pip install trufflehog

WORKDIR /usr/src/app
COPY . .
ENTRYPOINT ["python", "main.py"]
3 changes: 2 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
detectors = [
"detect-secrets",
"git-secrets"
"git-secrets",
"trufflehog"
]

[auth]
Expand Down
5 changes: 3 additions & 2 deletions detectors/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from detectors.detectsecrets import DetectSecrets
from detectors.gitsecrets import GitSecrets

from detectors.trufflehog import TruffleHog
# TODO: Turn this into a registry to match the notifiers pattern?
AvailableDetectors = {
'detect-secrets': DetectSecrets,
'git-secrets': GitSecrets
'git-secrets': GitSecrets,
'trufflehog': TruffleHog
}

0 comments on commit 020bc76

Please sign in to comment.