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
* gitleaks action + caller
Signed-off-by: Roman Trofimenkov <[email protected]>
* Add workflow_dispatch inputs to gitleaks action
Signed-off-by: Roman Trofimenkov <[email protected]>
* Add gitleaks self-test workflow configuration
Signed-off-by: Roman Trofimenkov <[email protected]>
* action fix
Signed-off-by: Roman Trofimenkov <[email protected]>
* path fix
Signed-off-by: Roman Trofimenkov <[email protected]>
* added leaks finding in job output
Signed-off-by: Roman Trofimenkov <[email protected]>
* gitleaks action: deleted unneccessary envs
Signed-off-by: Roman Trofimenkov <[email protected]>
* added README.md
Signed-off-by: Roman Trofimenkov <[email protected]>
* Remove Gitleaks self-test workflow and update action to support configurable Gitleaks version. Enhance README with optional config details and usage examples.
Signed-off-by: Roman Trofimenkov <[email protected]>
* (gitleaks): allow diff scan under pull_request_target
Signed-off-by: Roman Trofimenkov <[email protected]>
* refactor(summary): rename section to "Secret findings" and remove result limit note
Signed-off-by: Roman Trofimenkov <[email protected]>
* fix(gitleaks): scan PR head vs base on pull_request_target
Signed-off-by: Roman Trofimenkov <[email protected]>
* feat(gitleaks): use tree-only mode for diff scans
Switch diff mode to --no-git to avoid false positives from git history.
Full mode remains unchanged for complete repository audits.
Signed-off-by: Roman Trofimenkov <[email protected]>
* feat(gitleaks): enhance diff scan with PR patch collection
Implement a new step to collect added and modified files in PRs, allowing for a more targeted scan of changes. The patch map is generated to filter findings based on added lines, improving the accuracy of results in diff mode.
Signed-off-by: Roman Trofimenkov <[email protected]>
* output fix
Signed-off-by: Roman Trofimenkov <[email protected]>
* syntax fix
Signed-off-by: Roman Trofimenkov <[email protected]>
* stdoutfix
Signed-off-by: Roman Trofimenkov <[email protected]>
* output fix
Signed-off-by: Roman Trofimenkov <[email protected]>
* clean
Signed-off-by: Roman Trofimenkov <[email protected]>
* README update
Signed-off-by: Roman Trofimenkov <[email protected]>
---------
Signed-off-by: Roman Trofimenkov <[email protected]>
GitHub Action for automatic secret scanning in code using [Gitleaks](https://github.com/gitleaks/gitleaks). Prevents leakage of tokens, keys, passwords, and other secrets into the repository.
6
+
7
+
## ⚙️ Operation Modes
8
+
9
+
### Diff scan (primary mode)
10
+
-**Automatically integrated** into general PR validation
11
+
- Scans **only changed files** and **only added lines** in PR
12
+
- Does not analyze commit history — eliminates false positives
13
+
- Does not check unchanged files — focuses on new code
14
+
- Uses `--no-git` for fast scanning
15
+
16
+
### Full scan (additional mode)
17
+
- Runs on schedule or manually
18
+
- Scans the entire repository
19
+
- Suitable for periodic security audits
20
+
21
+
## 🚀 Usage
22
+
23
+
### Automatic Integration
24
+
25
+
Diff scan is already integrated into general PR validation and works automatically. No additional configuration required.
26
+
27
+
### Full Scanning (optional)
28
+
29
+
If you need full scan, add to `.github/workflows/security-scan.yml`:
30
+
31
+
```yaml
32
+
name: Security Scan
33
+
34
+
on:
35
+
schedule:
36
+
- cron: "0 2 * * *"# daily at 02:00 UTC
37
+
workflow_dispatch: {} # manual trigger
38
+
39
+
permissions:
40
+
contents: read
41
+
42
+
jobs:
43
+
gitleaks-full:
44
+
runs-on: ubuntu-latest
45
+
steps:
46
+
- uses: deckhouse/modules-actions/gitleaks@main
47
+
with:
48
+
scan_mode: full
49
+
```
50
+
51
+
### Configuration (optional)
52
+
53
+
To configure scanning rules, create `gitleaks.toml` in the repository root:
0 commit comments