forked from eclipse-edc/DataDashboard
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d49c910
commit ba937e2
Showing
148 changed files
with
2,865 additions
and
2,263 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 |
---|---|---|
@@ -1,25 +1,28 @@ | ||
# Pre-Commit-Hook | ||
The defined pre-commit-hook prevents committing passwords to the repository. In case a password is detected | ||
git commit fails. | ||
|
||
The defined pre-commit-hook prevents committing passwords to the repository. In | ||
case a password is detected git commit fails. | ||
|
||
## Install pre-commit | ||
1. Install pre-commit-hook tool | ||
`$ pip install pre-commit` | ||
2. Install detect-secrets | ||
`$ pip install detect-secrets` | ||
|
||
|
||
1. Install pre-commit-hook tool `$ pip install pre-commit` | ||
2. Install detect-secrets `$ pip install detect-secrets` | ||
|
||
## Enable secret-scanning pre-commit hook | ||
1. Update pre-commit-hook | ||
`$ pre-commit autoupdate` | ||
2. Enable defined pre-commit-hook | ||
`$ pre-commit install` | ||
|
||
1. Update pre-commit-hook `$ pre-commit autoupdate` | ||
2. Enable defined pre-commit-hook `$ pre-commit install` | ||
|
||
## On repository initialization of pre-commit hook with detect-secrets | ||
|
||
If no `.secrets.baseline` is present, simply generate it: | ||
|
||
1. `$ detect-secrets scan --disable-plugin KeywordDetector --disable-plugin AWSKeyDetector > .secrets.baseline` | ||
2. Use Notepad++ or IntelliJ-Editor to convert `.secrets.baseline` to UTF-8 | ||
|
||
## Add false-positives or force adding secrets | ||
|
||
1. `$ detect-secrets scan --baseline .secrets.baseline` | ||
2. If secrets are identified, add them to .secrets.baseline manually | ||
For more details see: https://github.com/Yelp/detect-secrets#adding-secrets-to-baseline | ||
2. If secrets are identified, add them to .secrets.baseline manually For more | ||
details see: | ||
https://github.com/Yelp/detect-secrets#adding-secrets-to-baseline |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
repos: | ||
- repo: https://github.com/Yelp/detect-secrets | ||
rev: v1.4.0 | ||
hooks: | ||
- id: detect-secrets | ||
args: ['--baseline', '.secrets.baseline'] | ||
exclude: package.lock.json | ||
- repo: https://github.com/Yelp/detect-secrets | ||
rev: v1.4.0 | ||
hooks: | ||
- id: detect-secrets | ||
args: ['--baseline', '.secrets.baseline'] | ||
exclude: package.lock.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
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
Oops, something went wrong.