Skip to content

Commit

Permalink
Duo labs issue 15 (duo-labs#16)
Browse files Browse the repository at this point in the history
Add Return Code 2 to List of Known Return Codes for git-secrets

Fixes: duo-labs#15
  • Loading branch information
bc-jcarlson authored Feb 18, 2020
1 parent 54a3f87 commit 3aef518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detectors/gitsecrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def run(self, repo_dir, file_obj, commit_link=None):
else:
sp = subprocess.run([self._binary_path, "--scan"], cwd=repo_dir, capture_output=True)

if sp.returncode not in [0, 1]:
if sp.returncode not in [0, 1, 2]:
self.logger.error(sp.stderr.decode())
raise Exception("Unknown error while running git-secrets. Are bash and GNU grep installed?")

Expand Down

0 comments on commit 3aef518

Please sign in to comment.