-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlefthook.secrets.yml
36 lines (34 loc) · 1.17 KB
/
lefthook.secrets.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ci-security:
parallel: false
commands:
gitleaks:
tags: security gotool
name: gitleaks-scan
run: gitleaks --config-path=./.gitleaks.toml --commit=latest --redact
# can support sarif format when we have pipeline extension for this enabled.
# squealer:
# tags: security
# name: squealer
# run: squealer --config-file ./.squealer.yml
pre-push:
parallel: false
commands:
gitleaks:
tags: security gotool
name: gitleaks-scan
run: gitleaks --config-path=./.gitleaks.toml --commit=latest --redact
# go install github.com/owenrumney/squealer/cmd/squealer@latest
pre-commit:
parallel: true
tags: security
commands:
# Install with: go install github.com/owenrumney/squealer/cmd/squealer@latest
squealer:
name: squealer
run: squealer --config-file ./squealer.yml
# Install with: go install -v github.com/zricethezav/gitleaks@latest
gitleaks:
tags: security gotool
name: gitleaks-scan
# run: docker run -v ${PWD}:/repo zricethezav/gitleaks:latest --path="/repo" --pretty -v
run: gitleaks --config-path=.gitleaks.toml --unstaged -v # This expands to past commits --repo-path=