-
-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (38 loc) · 1.1 KB
/
secret-scan.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
name: Secret Scan
on:
push:
pull_request:
jobs:
megalinter:
name: MegaLinter
runs-on: ubuntu-latest
steps:
- name: Setup jq
uses: dcarbone/[email protected]
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: MegaLinter
id: ml
uses: oxsecurity/megalinter/flavors/documentation@v7
env:
# All available variables are described in documentation
# https://megalinter.io/configuration/
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
ENABLE: EDITORCONFIG
FILTER_REGEX_EXCLUDE: (LICENSE|CODE_OF_CONDUCT\.md|.idea|app.ini)
trufflehog:
name: Trufflehog
runs-on: ubuntu-latest
steps:
- name: Setup jq
uses: dcarbone/[email protected]
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: TruffleHog OSS
uses: trufflesecurity/trufflehog@main
with:
extra_args: --debug --only-verified