-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(cmd-api-server): clean up configuration parameters gitguardi… #2086
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b3fa477
refactor(cmd-api-server): clean up configuration parameters gitguardi…
ruzell22 1e848c9
refactor(cmd-api-server): clean up configuration parameters gitguardi…
ruzell22 fd8e130
refactor(cmd-api-server): clean up configuration parameters gitguardi…
ruzell22 586b92b
refactor(cmd-api-server): clean up configuration parameters gitguardi…
ruzell22 1c1f45a
refactor(cmd-api-server): clean up configuration parameters gitguardi…
ruzell22 4dd155e
refactor(cmd-api-server): clean up configuration parameters gitguardi…
ruzell22 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,30 @@ | ||
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 behavior. | ||
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' | ||
|
||
# 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,42 @@ | ||
name: GitGuardian scan | ||
|
||
on: | ||
push: | ||
pull_request_target: | ||
types: | ||
- assigned | ||
- opened | ||
- synchronize | ||
- reopened | ||
- unlabeled | ||
- closed | ||
|
||
# Publish `main` as Docker `latest` image. | ||
branches: | ||
- main | ||
|
||
# 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: 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: main | ||
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }} |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Idea 1
Idea 2 (desperate option)
Try to rename the config file to have
.yml
extension instead of.yaml
just to 100% match what their documentation says.