Skip to content

Commit 12d8b3d

Browse files
committed
Change workflow
1 parent bbec612 commit 12d8b3d

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.github/workflows/secret-scan.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
1-
name: gitleaks
2-
on: [pull_request, push, workflow_dispatch]
1+
name: GitLeaks Security Scan
2+
3+
on:
4+
push:
5+
branches: [ '*' ]
6+
pull_request:
7+
branches: [ '*' ]
8+
39
jobs:
4-
scan:
5-
name: gitleaks
10+
gitleaks:
11+
name: Secret Detection
612
runs-on: ubuntu-latest
13+
714
steps:
8-
- uses: actions/checkout@v3
15+
- name: Checkout code
16+
uses: actions/checkout@v4
917
with:
1018
fetch-depth: 0
11-
- uses: zricethezav/gitleaks-action@v2.0.0
19+
20+
- name: Run GitLeaks
21+
uses: gitleaks/gitleaks-action@v2
1222
env:
13-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14-
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}}
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)