|
26 | 26 | - id: grype-scan-local |
27 | 27 | name: Grype scan local changes |
28 | 28 | entry: make |
29 | | - args: ["grype-scan-local"] |
| 29 | + args: [ "grype-scan-local" ] |
30 | 30 | language: system |
31 | 31 | pass_filenames: false |
32 | 32 | always_run: true |
@@ -54,49 +54,48 @@ repos: |
54 | 54 | - id: lint-githubactions |
55 | 55 | name: Lint github actions |
56 | 56 | entry: make |
57 | | - args: ["actionlint"] |
| 57 | + args: [ "actionlint" ] |
58 | 58 | language: system |
59 | 59 | files: ^.github |
60 | | - types_or: [yaml] |
| 60 | + types_or: [ yaml ] |
61 | 61 | pass_filenames: false |
62 | 62 |
|
63 | 63 | - id: lint-githubaction-scripts |
64 | 64 | name: Lint github action scripts |
65 | 65 | entry: make |
66 | | - args: ["shellcheck"] |
| 66 | + args: [ "shellcheck" ] |
67 | 67 | language: system |
68 | 68 | files: ^.github/scripts |
69 | | - types_or: [sh, shell] |
| 69 | + types_or: [ sh, shell ] |
70 | 70 | pass_filenames: false |
71 | 71 |
|
72 | 72 | - id: lint-cdkConstructs |
73 | 73 | name: Lint cdkConstructs |
74 | 74 | entry: npm |
75 | | - args: ["run", "--prefix=packages/cdkConstructs", "lint"] |
| 75 | + args: [ "run", "--prefix=packages/cdkConstructs", "lint" ] |
76 | 76 | language: system |
77 | 77 | files: ^packages\/cdkConstructs |
78 | | - types_or: [ts, tsx, javascript, jsx, json] |
| 78 | + types_or: [ ts, tsx, javascript, jsx, json ] |
79 | 79 | pass_filenames: false |
80 | 80 |
|
81 | 81 | - id: lint-deploymentUtils |
82 | 82 | name: Lint deploymentUtils |
83 | 83 | entry: npm |
84 | | - args: ["run", "--prefix=packages/deploymentUtils", "lint"] |
| 84 | + args: [ "run", "--prefix=packages/deploymentUtils", "lint" ] |
85 | 85 | language: system |
86 | 86 | files: ^packages\/deploymentUtils |
87 | | - types_or: [ts, tsx, javascript, jsx, json] |
| 87 | + types_or: [ ts, tsx, javascript, jsx, json ] |
88 | 88 | pass_filenames: false |
89 | 89 |
|
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. |
95 | 94 | entry: bash |
96 | 95 | args: |
97 | 96 | - -c |
98 | | - - "git-secrets --pre_commit_hook" |
| 97 | + - "gitleaks git --pre-commit --redact --staged --verbose" |
99 | 98 | language: system |
100 | 99 |
|
101 | 100 | fail_fast: true |
102 | | -default_stages: [pre-commit] |
| 101 | +default_stages: [ pre-commit ] |
0 commit comments