-
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.
* Replace CRA with Vite, starter code runs; add new linters stuff * Update backend with secret scanning * Replace references to CRA with Vite in writeup * Replace Jest with Vitest, update writeup + CI * Upgrade Husky in backend * `npm install` in backend
- Loading branch information
Showing
41 changed files
with
6,039 additions
and
34,521 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
name: Run tests | ||
on: | ||
pull_request: | ||
branches: main | ||
push: | ||
branches: main | ||
jobs: | ||
frontend: | ||
name: Frontend tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
- name: Run tests | ||
working-directory: frontend | ||
run: | | ||
npm ci | ||
npm run test -- run |
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,27 @@ | ||
{ | ||
"//": [ | ||
"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]+" | ||
}, | ||
"//": [ | ||
"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"], | ||
"//": [ | ||
"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.