-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HAWNG-395: Handle warnings and false-positives
* .gitleaks.toml * Provides an extension config which lists the false-positives that should be ignored * generate-.*\.sh * Fixes shellcheck warnings is assignments * nginx.sh * Removes pipefail setting as non-POSIX and since pipes not actually used in script then removed entirely * Replaces bash (-v) which POSIX compatible equivalent * ws-handler.ts * Checks the origin of the MessageEvent. Since the messages are expected from the cluster they should only comes from ${APP_HOST}/master so any other origin is not appropriate so should be ignored * .snyk * Exclude non-production files from snyk analysis
- Loading branch information
1 parent
a781231
commit 19e4311
Showing
8 changed files
with
61 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Title for the gitleaks configuration file. | ||
title = "Gitleaks Configuration" | ||
|
||
# Extend the base (this) configuration. When you extend a configuration | ||
# the base rules take precedence over the extended rules. I.e., if there are | ||
# duplicate rules in both the base configuration and the extended configuration | ||
# the base rules will override the extended rules. | ||
# Another thing to know with extending configurations is you can chain together | ||
# multiple configuration files to a depth of 2. Allowlist arrays are appended | ||
# and can contain duplicates. | ||
# useDefault and path can NOT be used at the same time. Choose one. | ||
[extend] | ||
# useDefault will extend the base configuration with the default gitleaks config: | ||
# https://github.com/zricethezav/gitleaks/blob/master/config/gitleaks.toml | ||
useDefault = true | ||
|
||
# This is a global allowlist which has a higher order of precedence than rule-specific allowlists. | ||
# If a commit listed in the `commits` field below is encountered then that commit will be skipped and no | ||
# secrets will be detected for said commit. The same logic applies for regexes and paths. | ||
[allowlist] | ||
description = "Ignore False-Positives" | ||
paths = [ | ||
'''.yarn/.*''', | ||
'''packages/oauth/src/form/jwt-decode.test.ts''' | ||
] |
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,5 @@ | ||
exclude: | ||
global: | ||
# Exclude all development webpack build config files | ||
- "webpack.config.dev.js" | ||
- "webpack.config.js" |
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
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