generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
129 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
exclude: # exclude matching issues | ||
- message: Build directories | ||
paths: | ||
- build/** | ||
- dist/** | ||
- README.md | ||
- .github/** | ||
- message: Examples and data necessary for running auto-tests | ||
paths: | ||
- docs/*.html | ||
- docs/examples/* | ||
- message: DB login config | ||
# Without this the db.password will incorrectly flag | ||
pattern: Config.DB_PASSWORD | ||
paths: | ||
- app/db/__init__.py | ||
- message: Trufflehog rules file contains regexes which might trigger the scanner | ||
paths: | ||
- trufflehog3/static/rules.yml | ||
- message: Integrity hash for highlight.min.js | ||
# NOTE pattern is re.Pattern, thus escaping of special characters might be required | ||
pattern: sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx\+mdg3epi8= | ||
paths: | ||
- docs/templates/*.mako | ||
- message: Integrity hash for materialize.min.css | ||
# NOTE pattern is re.Pattern, thus escaping of special characters might be required | ||
pattern: sha256-kpeCd0c1zTgJMsU\+s8Pz4CwckI73qwpdYMTxTsRyO8A= | ||
paths: | ||
- docs/templates/*.mako | ||
- trufflehog3/static/report.html.j2 | ||
- message: Integrity hash for materialize.min.js | ||
pattern: sha256-U/cHDMTIHCeMcvehBv1xQ052bPSbJtbuiw4QA9cTKz0= | ||
paths: | ||
- docs/templates/*.mako | ||
- trufflehog3/static/report.html.j2 | ||
- message: Alphabet used in autotests | ||
pattern: abcdefghijklmnopqrstuvwxyz | ||
paths: | ||
- trufflehog3/helper.py | ||
- trufflehog3/models.py | ||
- trufflehog3/search.py | ||
- message: Commit hash used in autotests | ||
pattern: 9e404e6c59d286645b2465aacaf61108ebc12a3a | ||
paths: | ||
- trufflehog3/source.py | ||
# NOTE you can also specify IDs or patterns together or without paths, e.g. | ||
# | ||
# - message: Skip ID everywhere | ||
# id: high-entropy | ||
# - message: Skip ID on specific paths | ||
# id: high-entropy | ||
# paths: | ||
# - tests/data/* | ||
# | ||
# - message: Skip pattern everywhere, case-insensitive | ||
# pattern: (?i)not-a-secret | ||
# - message: Skip pattern on specific paths, case-insensitive | ||
# pattern: (?i)not-a-secret | ||
# paths: | ||
# - tests/data/* | ||
|
||
severity: low # minimum severity filter | ||
ignore_nosecret: false # ignore inline 'nosecret' annotations | ||
no_entropy: false # disable entropy checks | ||
no_pattern: false # disable pattern checks | ||
|
||
depth: 10000 # max commits depth for searching, only used if `no_history` is false | ||
since: null # scan from the given commit hash, only used if `no_history` is false | ||
no_current: false # disable current status check | ||
no_history: true # disable commit history check | ||
|
||
context: 0 # number of context lines to include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
-r requirements-base.in | ||
ruff==0.6.2 | ||
trufflehog3 |