-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 976 Bytes
/
Copy pathsecrets.yml
File metadata and controls
46 lines (41 loc) · 976 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Gitleaks
on:
pull_request:
paths-ignore:
- dist/**
- test/fixtures/**
- .cstack/**
push:
branches:
- main
paths-ignore:
- dist/**
- test/fixtures/**
- .cstack/**
workflow_dispatch:
permissions:
contents: read
concurrency:
group: gitleaks-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
scan:
name: Gitleaks
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Check out repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
fetch-depth: 0
- name: Scan for secrets
run: |
docker run --rm \
-v "${{ github.workspace }}:/src" \
-w /src \
zricethezav/gitleaks:latest detect \
--source=/src \
--exit-code=1 \
--redact \
--report-format=sarif \
--report-path=/src/gitleaks.sarif