Skip to content

Commit bd23a4c

Browse files
committed
Add git-secrets-scan workflow
Signed-off-by: currantw <[email protected]>
1 parent bd4ea28 commit bd23a4c

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Git Secrets Scan
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
- release-*
11+
- v*
12+
workflow_dispatch:
13+
14+
concurrency:
15+
group: git-secrets-scan-${{ github.head_ref || github.ref }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
scan:
20+
runs-on: ubuntu-latest
21+
timeout-minutes: 10
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v5
26+
27+
- name: Install git-secrets
28+
run: |
29+
git clone --depth 1 --branch 1.3.0 https://github.com/awslabs/git-secrets.git
30+
cd git-secrets
31+
sudo make install
32+
33+
- name: Configure git-secrets
34+
run: git secrets --register-aws
35+
36+
- name: Run git-secrets
37+
run: git secrets --scan

0 commit comments

Comments
 (0)