-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlefthook.secrets.yml
39 lines (37 loc) · 1.24 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
37
38
39
---
ci-security:
parallel: false
commands:
gitleaks:
tags: security gotool
name: gitleaks-scan
run: gitleaks --config-path=./.gitleaks.toml --commit=latest --redact -vq | gojq
# 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 -vq | gojq
# 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
# Install gojq: go install github.com/itchyny/gojq/cmd/gojq@latest
gitleaks:
tags: security gotool
name: gitleaks-scan
# run: docker run -v ${PWD}:/repo zricethezav/gitleaks:latest --path="/repo" --pretty -v
run: |
gitleaks --unstaged --config-path=./.gitleaks.toml -vq | gojq