You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- changed pointers new gitleaks repo (zricethezav/gitleaks ->
gitleaks/gitleaks)
- changed action to self-build docker image instead of pulling from GH
packages
- changed gitleaks docker source to docker hub (looks like official ghcr
is not updated after the gitleaks rebranding)
- improved allowlisted for extended toml config
- added gitleaks `--baseline-path` support
- added dependabot support to the repo
- minor dev experience improvements
- files lint
Copy file name to clipboardexpand all lines: README.md
+19-18
Original file line number
Diff line number
Diff line change
@@ -2,29 +2,30 @@
2
2
3
3
[](https://github.com/DariuszPorowski/github-action-gitleaks/releases)
4
4
5
-
This GitHub Action allows you to run [Gitleaks](https://github.com/zricethezav/gitleaks) in your CI/CD workflow.
5
+
This GitHub Action allows you to run [Gitleaks](https://github.com/gitleaks/gitleaks) in your CI/CD workflow.
6
6
7
7
> NOTE: v2 of this GitHub Action supports only the latest version of Gitleaks from v8 release.
8
8
9
9
## Inputs
10
10
11
-
| Name | Required | Type | Default value | Description |
> NOTE: The solution provides predefined configuration (See: [.gitleaks](https://github.com/DariuszPorowski/github-action-gitleaks/tree/main/.gitleaks) path). You can override it by yours config using relative to `$GITHUB_WORKSPACE`.
23
+
> __NOTE:__ The solution provides predefined configuration (See: [.gitleaks](https://github.com/DariuszPorowski/github-action-gitleaks/tree/main/.gitleaks) path). You can override it by yours config using relative to `$GITHUB_WORKSPACE`.
| exitcode | Success (code: 0) or failure (code: 1) value from scan |
29
30
| result | Gitleaks result summary |
30
31
| output | Gitleaks log output |
@@ -33,7 +34,7 @@ This GitHub Action allows you to run [Gitleaks](https://github.com/zricethezav/g
33
34
34
35
## Example usage
35
36
36
-
> **NOTE:** You must use actions/checkout before the `github-action-gitleaks` step. If you are using `actions/checkout@v3` you must specify a commit depth other than the default which is 1.
37
+
> __NOTE:__ You must use actions/checkout before the `github-action-gitleaks` step. If you are using `actions/checkout@v3` you must specify a commit depth other than the default which is 1.
37
38
>
38
39
> Using a `fetch-depth` of '0' clones the entire history. If you want to do a more efficient clone, use '2', but that is not guaranteed to work with pull requests.
39
40
@@ -62,13 +63,13 @@ This GitHub Action allows you to run [Gitleaks](https://github.com/zricethezav/g
- name: Upload Gitleaks SARIF report to code scanning service
65
-
if: steps.gitleaks.outputs.exitcode == 1
66
+
if: ${{ steps.gitleaks.outputs.exitcode == 1 }}
66
67
uses: github/codeql-action/upload-sarif@v2
67
68
with:
68
69
sarif_file: ${{ steps.gitleaks.outputs.report }}
69
70
```
70
71
71
-
> **NOTE:** SARIF file uploads for code scanning is not available for everyone. Read GitHub docs ([Uploading a SARIF file to GitHub](https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github)) for more information.
72
+
> __NOTE:__ SARIF file uploads for code scanning is not available for everyone. Read GitHub docs ([Uploading a SARIF file to GitHub](https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github)) for more information.
72
73
73
74
### With JSON report and custom rules config
74
75
@@ -82,7 +83,7 @@ This GitHub Action allows you to run [Gitleaks](https://github.com/zricethezav/g
82
83
id: gitleaks
83
84
uses: DariuszPorowski/github-action-gitleaks@v2
84
85
with:
85
-
config: "MyGitleaksConfigs/MyGitleaksConfig.toml"
86
+
config: MyGitleaksConfigs/MyGitleaksConfig.toml
86
87
87
88
- name: Upload Gitleaks JSON report to artifacts
88
89
uses: actions/upload-artifact@v3
@@ -100,7 +101,7 @@ This GitHub Action allows you to run [Gitleaks](https://github.com/zricethezav/g
100
101
101
102
## Contributions
102
103
103
-
If you have any feedback on `Gitleaks`, please reach out to [Zachary Rice](https://github.com/zricethezav) for creating and maintaining [Gitleaks](https://github.com/zricethezav/gitleaks).
104
+
If you have any feedback on `Gitleaks`, please reach out to [Zachary Rice (@zricethezav)](https://github.com/zricethezav) for creating and maintaining [Gitleaks](https://github.com/gitleaks/gitleaks).
104
105
105
106
Any feedback on the Gitleaks config for Azure `UDMSecretChecks.toml` file is welcome. Follow Jesse Houwing's GitHub repo - [gitleaks-azure](https://github.com/jessehouwing/gitleaks-azure).
0 commit comments