-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Updated linters to use the new TSE linters, and added secret scanning tool created by Justin
- Loading branch information
1 parent
a9913e4
commit ea369ec
Showing
26 changed files
with
1,168 additions
and
291 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,3 @@ | ||
#!/bin/sh | ||
secret_scan_script="$(dirname "${0}")/../.secret-scan/secret-scan.js" | ||
node "${secret_scan_script}" |
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,2 @@ | ||
/secret-scan-cache.json | ||
/secret-scan-report.json |
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,35 @@ | ||
{ | ||
"//": [ | ||
"Regexes used to scan the repository contents for secrets.", | ||
"If possible, try to make the regex match the entire secret, or", | ||
"allowedStrings might not work as expected. For example, if a regex", | ||
"matches only 'mongodb', this string by itself does not contain any of the", | ||
"strings in the allowlist, so it will still be flagged." | ||
], | ||
"secretRegexes": { | ||
"mongodbUrl": "mongodb([+]srv)?://[^\\s]+", | ||
"firebaseJsonPrivateKeyFile": "-----BEGIN PRIVATE KEY-----[^\\s]+", | ||
"emailAppPassword": "EMAIL_APP_PASSWORD=.*" | ||
}, | ||
"//": [ | ||
"To prevent a particular string from being flagged, add it (or a substring", | ||
"of it) to this array. This can be useful if your repository contains an", | ||
"example of what a credential should look like, a development credential", | ||
"(e.g. a database on localhost), or a previously leaked credential that", | ||
"has already been revoked. Obviously, do not put active credentials here." | ||
], | ||
"allowedStrings": [ | ||
"mongodb://127.0.0.1", | ||
"mongodb://localhost", | ||
|
||
"EMAIL_APP_PASSWORD=\"<example>\"", | ||
"EMAIL_APP_PASSWORD='<example>'", | ||
"EMAIL_APP_PASSWORD=\"xxx\"" | ||
], | ||
"//": [ | ||
"Do not check for secrets in these files. You should almost always use", | ||
"allowedStrings instead of this. We only add this config because it", | ||
"naturally contains things that look like secrets, but aren't." | ||
], | ||
"skippedFiles": [".secret-scan/secret-scan-config.json"] | ||
} |
Oops, something went wrong.