-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (25 loc) · 837 Bytes
/
Copy pathsecurity.yaml
File metadata and controls
30 lines (25 loc) · 837 Bytes
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
name: Security
on:
push:
branches: [main, develop]
pull_request:
branches: [develop, main]
permissions:
contents: read
jobs:
gitleaks:
name: Gitleaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
# A secret is not undone by a later commit: it stays in history and
# has to be rotated. Scanning the tip only would miss it.
fetch-depth: 0
- name: Install gitleaks
run: |
GITLEAKS_VERSION=8.30.1
curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" \
| sudo tar -xz -C /usr/local/bin gitleaks
- name: Run gitleaks
run: gitleaks detect --no-banner --redact