Skip to content

Commit 39e2acd

Browse files
authored
Chore: [AEA-0000] - use gitleaks for secret scanning (#689)
use gitleaks for secret scanning
1 parent 3cb9b6f commit 39e2acd

2 files changed

Lines changed: 15 additions & 33 deletions

File tree

.gitallowed

Lines changed: 0 additions & 17 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
- id: grype-scan-local
2727
name: Grype scan local changes
2828
entry: make
29-
args: ["grype-scan-local"]
29+
args: [ "grype-scan-local" ]
3030
language: system
3131
pass_filenames: false
3232
always_run: true
@@ -54,49 +54,48 @@ repos:
5454
- id: lint-githubactions
5555
name: Lint github actions
5656
entry: make
57-
args: ["actionlint"]
57+
args: [ "actionlint" ]
5858
language: system
5959
files: ^.github
60-
types_or: [yaml]
60+
types_or: [ yaml ]
6161
pass_filenames: false
6262

6363
- id: lint-githubaction-scripts
6464
name: Lint github action scripts
6565
entry: make
66-
args: ["shellcheck"]
66+
args: [ "shellcheck" ]
6767
language: system
6868
files: ^.github/scripts
69-
types_or: [sh, shell]
69+
types_or: [ sh, shell ]
7070
pass_filenames: false
7171

7272
- id: lint-cdkConstructs
7373
name: Lint cdkConstructs
7474
entry: npm
75-
args: ["run", "--prefix=packages/cdkConstructs", "lint"]
75+
args: [ "run", "--prefix=packages/cdkConstructs", "lint" ]
7676
language: system
7777
files: ^packages\/cdkConstructs
78-
types_or: [ts, tsx, javascript, jsx, json]
78+
types_or: [ ts, tsx, javascript, jsx, json ]
7979
pass_filenames: false
8080

8181
- id: lint-deploymentUtils
8282
name: Lint deploymentUtils
8383
entry: npm
84-
args: ["run", "--prefix=packages/deploymentUtils", "lint"]
84+
args: [ "run", "--prefix=packages/deploymentUtils", "lint" ]
8585
language: system
8686
files: ^packages\/deploymentUtils
87-
types_or: [ts, tsx, javascript, jsx, json]
87+
types_or: [ ts, tsx, javascript, jsx, json ]
8888
pass_filenames: false
8989

90-
- repo: local
91-
hooks:
92-
- id: git-secrets
93-
name: Git Secrets
94-
description: git-secrets scans commits, commit messages, and --no-ff merges to prevent adding secrets into your git repositories.
90+
- id: gitleaks
91+
name: Git Leaks
92+
description: gitleaks scans commits, commit messages, and --no-ff merges to
93+
prevent adding secrets into your git repositories.
9594
entry: bash
9695
args:
9796
- -c
98-
- "git-secrets --pre_commit_hook"
97+
- "gitleaks git --pre-commit --redact --staged --verbose"
9998
language: system
10099

101100
fail_fast: true
102-
default_stages: [pre-commit]
101+
default_stages: [ pre-commit ]

0 commit comments

Comments
 (0)