|
1 | 1 | description: > |
2 | | - Detect secrets leak inside a project at the repository level. Uses "gitleaks detect" command |
3 | | - to do the scan, for details how it works see https://github.com/gitleaks/gitleaks#usage. |
| 2 | + Detect secrets leak inside a project at the repository level. Under the hood, the "gitleaks detect" |
| 3 | + command is utilized. For details on usage see https://github.com/gitleaks/gitleaks#usage. |
4 | 4 |
|
5 | 5 | executor: gitleaks |
6 | 6 |
|
7 | 7 | parameters: |
8 | 8 | path: |
9 | 9 | type: string |
10 | 10 | default: '.' |
11 | | - description: Path to the root of the Git repository to scan. |
| 11 | + description: The path to the root of the Git repository to scan. |
12 | 12 | config: |
13 | 13 | type: string |
14 | 14 | default: '' |
15 | 15 | description: > |
16 | | - Path to the Gitleaks config file. By default tries to load <<paramets.path>>/.gitleaks.toml. |
| 16 | + The path to the Gitleaks config file. By default, it tries to load "<<parameters.path>>/.gitleaks.toml". |
17 | 17 | baseline: |
18 | 18 | type: string |
19 | 19 | default: '' |
20 | | - description: Path to the baseline report, i.e. issues that can be ignorred. |
| 20 | + description: The path to the baseline report, i.e. issues that can be ignored. |
21 | 21 | base_branch: |
22 | 22 | type: string |
23 | 23 | default: '' |
24 | 24 | description: > |
25 | | - The name of the base branch for for this scan. Usually some long-lived branch, e.g. default branch. |
| 25 | + The name of the base branch for this scan. Commonly a long-lived branch, e.g. "main" or "master". |
26 | 26 | base_revision: |
27 | 27 | type: string |
28 | 28 | default: '' |
29 | 29 | description: > |
30 | | - The hash of the last scanned commit from the prior build. Usually just pass CircleCI's |
31 | | - <<pipeline.git.base_revision>> pipeline parameter. |
| 30 | + The hash of the last scanned commit from the prior build. Usually, pass CircleCI |
| 31 | + "<<pipeline.git.base revision>>" pipeline parameter. |
32 | 32 |
|
33 | 33 | steps: |
34 | 34 | - checkout |
|
39 | 39 | BASELINE_REPORT: <<parameters.baseline>> |
40 | 40 | command: <<include(scripts/export-gitleaks-args.sh)>> |
41 | 41 | - run: |
42 | | - name: Detect secrets inside Git repository |
| 42 | + name: Detect secrets inside the Git repository |
43 | 43 | working_directory: <<parameters.path>> |
44 | 44 | environment: |
45 | 45 | REPO_PATH: <<parameters.path>> |
|
0 commit comments