Skip to content

Commit

Permalink
refactor(cmd-api-server): clean up configuration parameters gitguardi…
Browse files Browse the repository at this point in the history
…an scanner test

test

Signed-off-by: ruzell22 <[email protected]>
  • Loading branch information
ruzell22 committed Jul 25, 2022
1 parent b3f9fe9 commit 12c3e5c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 25 deletions.
45 changes: 21 additions & 24 deletions .gitguardian.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
# Exclude files and paths by globbing
paths-ignore:
- '**/README.md'
- 'doc/*'
- 'LICENSE'
- '**/examples/cactus-example-carbon-accounting-backend/example-config.json'

# Ignore security incidents with the SHA256 of the occurrence obtained at output or the secret itself
# matches-ignore:
# - name:
# match: 530e5a4a7ea00814db8845dd0cae5efaa4b974a3ce1c76d0384ba715248a5dc1
# - name: credentials
# match: MY_TEST_CREDENTIAL

show-secrets: false # default: false

# By default only secrets are detected. Use all-policies to toggle this behaviour.
all-policies: false # default: false
version: 2

# Set to true if the desired exit code for the CLI is always 0,
# otherwise the exit code will be 1 if incidents are found
Expand All @@ -32,9 +15,23 @@ max-commits-for-hook: 50 # default: 50
# Accept self-signed certificates for the API.
allow-self-signed: false # default: False

# Detectors to ignore.
# banlisted-detectors: # default: []
# - Generic Password

# Use default excluded vendors folders
ignore-default-excludes: false # default: false
secret:
show-secrets: false # default: false

# Exclude files and paths by globbing
ignored-paths:
- '**/README.md'
- 'doc/*'
- 'LICENSE'
- '**/examples/cactus-example-carbon-accounting-backend/example-config.json'

# Ignore security incidents with the SHA256 of the occurrence obtained at output or the secret itself
# ignored-matches:
# - name:
# match: 530e5a4a7ea00814db8845dd0cae5efaa4b974a3ce1c76d0384ba715248a5dc1
# - name: credentials
# match: MY_TEST_CREDENTIAL

# Detectors to ignore.
ignored-detectors: # default: []
- Generic Password
2 changes: 1 addition & 1 deletion .github/workflows/gg-shield-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
GITHUB_PULL_BASE_SHA: ${{ github.event.pull_request.base.sha }}
GITHUB_DEFAULT_BRANCH: haruharu720test
GITGUARDIAN_API_KEY: bBae0Daed3c0dFD1dC624380aA3FEbBfddD06dCeB3Ca5c2dCADF661C42617Dc65298FcE
GITGUARDIAN_API_URL: 'https://api.gitguardian.com/'
GITGUARDIAN_INSTANCE: 'https://api.gitguardian.com/'

0 comments on commit 12c3e5c

Please sign in to comment.