Skip to content

Commit 8fa11f2

Browse files
authored
test(actions): add secret scanner.
1 parent abfeee1 commit 8fa11f2

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/secret_scanner.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Secret scanner
2+
on:
3+
push:
4+
branches: [ "master" ]
5+
pull_request:
6+
branches: [ "master" ]
7+
permissions:
8+
contents: read
9+
jobs:
10+
secret-scanner:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
- name: Install Nix
16+
uses: DeterminateSystems/nix-installer-action@main
17+
- name: Scan secrets in commits
18+
run: nix shell nixpkgs#gitleaks --command gitleaks git --no-banner --verbose
19+
- name: Scan secrets in files
20+
run: nix shell nixpkgs#gitleaks --command gitleaks dir --no-banner --verbose

0 commit comments

Comments
 (0)