-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(all): Replace trufflehog with detect-secrets (#983)
* Removed trufflehog Signed-off-by: Elena Khaustova <[email protected]> * Updated github actions per plugin Signed-off-by: Elena Khaustova <[email protected]> * Updated release notes Signed-off-by: Elena Khaustova <[email protected]> * Updated validate-pr check scopes Signed-off-by: Elena Khaustova <[email protected]> * Updated lint command Signed-off-by: Elena Khaustova <[email protected]> * Added key to trigger check Signed-off-by: Elena Khaustova <[email protected]> * Updated GH action to track per plugin Signed-off-by: Elena Khaustova <[email protected]> * Removed secret Signed-off-by: Elena Khaustova <[email protected]> * Updated GH for kedro-datasets Signed-off-by: Elena Khaustova <[email protected]> * Updated secrets baseline Signed-off-by: Elena Khaustova <[email protected]> --------- Signed-off-by: Elena Khaustova <[email protected]>
- Loading branch information
1 parent
630f4ea
commit bf0c407
Showing
18 changed files
with
585 additions
and
17 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,46 @@ | ||
name: Detect secrets on plugins | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
plugin: | ||
type: string | ||
os: | ||
type: string | ||
python-version: | ||
type: string | ||
|
||
jobs: | ||
detect-secrets: | ||
defaults: | ||
run: | ||
shell: bash | ||
runs-on: ${{ inputs.os }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
- name: Cache python packages | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{inputs.plugin}}-${{inputs.os}}-python-${{inputs.python-version}} | ||
restore-keys: ${{inputs.plugin}} | ||
- name: Install uv | ||
run: | | ||
python -m pip install "uv==0.2.21" | ||
- name: Install dependencies | ||
run: | | ||
cd ${{ inputs.plugin }} | ||
uv pip install --system "kedro @ git+https://github.com/kedro-org/kedro@main" | ||
uv pip install --system "${{inputs.plugin}}[lint] @ ." | ||
uv pip freeze --system | ||
- name: Install pre-commit hooks | ||
run: | | ||
pre-commit install --install-hooks | ||
pre-commit install --hook-type pre-push | ||
- name: Scan all tracked files | ||
run: git ls-files ":(glob)*" ${{ inputs.plugin }} -z | xargs -0 detect-secrets-hook --baseline .secrets.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,5 +19,6 @@ jobs: | |
datasets | ||
docker | ||
telemetry | ||
all | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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.