-
Notifications
You must be signed in to change notification settings - Fork 0
/
scan-secrets.yml
46 lines (38 loc) · 946 Bytes
/
scan-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
name: Scan for Secrets
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
scan-secrets:
name: Run TruffleHog and git-secrets
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install TruffleHog
run: |
pip install truffleHog
- name: Scan for secrets with TruffleHog
run: |
truffleHog --regex --entropy=True .
- name: Install git-secrets
run: |
sudo apt-get update
sudo apt-get install -y git-secrets
- name: Initialize git-secrets
run: |
git secrets --install
git secrets --register-aws # AWS anahtarlarını taramak için
- name: Scan for secrets with git-secrets
run: |
git secrets --scan