-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(cmd-api-server): clean up configuration parameters gitguardi…
…an scanner test test Signed-off-by: ruzell22 <[email protected]>
- Loading branch information
Showing
11 changed files
with
79 additions
and
63 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,37 @@ | ||
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 | ||
# the environment variable GITGUARDIAN_EXIT_ZERO=true can also be used toggle this behaviour. | ||
exit-zero: false # default: false | ||
|
||
verbose: false # default: false | ||
|
||
instance: https://api.gitguardian.com/ | ||
|
||
# Maximum commits to scan in a hook. | ||
max-commits-for-hook: 50 # default: 50 | ||
|
||
# Accept self-signed certificates for the API. | ||
allow-self-signed: 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 |
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,38 @@ | ||
name: GitGuardian scan | ||
|
||
on: | ||
push: | ||
pull_request: | ||
# Publish `main` as Docker `latest` image. | ||
branches: | ||
- main | ||
- haruharu720test | ||
|
||
# Publish `v1.2.3` tags as releases. | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
scanning: | ||
name: GitGuardian scan | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 # fetch all history so multiple commits can be scanned | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# - name: Login to DockerHub Registry | ||
# run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | ||
- name: GitGuardian scan | ||
uses: GitGuardian/[email protected] | ||
with: | ||
args: --show-secrets --exit-zero --all-policies --verbose | ||
env: | ||
GITHUB_PUSH_BEFORE_SHA: ${{ github.event.before }} | ||
GITHUB_PUSH_BASE_SHA: ${{ github.event.base }} | ||
GITHUB_PULL_BASE_SHA: ${{ github.event.pull_request.base.sha }} | ||
GITHUB_DEFAULT_BRANCH: haruharu720test | ||
# GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }} | ||
# GITGUARDIAN_INSTANCE: 'https://api.gitguardian.com/' |
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
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