forked from angrymeir/Module-3-DevSecOps-Example
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (38 loc) · 1.01 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
name: Secrets scanning with GitLeaks
on:
push:
branches: ['main']
workflow_dispatch:
## Start: Version 3
pull_request:
types: [opened, reopened, synchronize]
## End: Version 3
jobs:
scan:
runs-on: ubuntu-latest
steps:
## Start: Version 0
- name: Checkout repository
uses: actions/checkout@v3
## End: Version 0
## Start: Version 1
# - name: GitLeaks
# uses: gitleaks/gitleaks-action@v2
## End: Version 1
## Start: Version 2
- name: GitLeaks
continue-on-error: true
uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_ENABLE_UPLOAD_ARTIFACT: false
- name: Upload artifact
uses: actions/upload-artifact@main
with:
name: results.sarif
path: results.sarif
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif
## End: Version 2