Skip to content

Commit 9689f74

Browse files
authored
Merge pull request #701 from Jonsy13/add-gitleaks
Adding `gitleaks` as PR Check
2 parents f2b2c27 + d273ba6 commit 9689f74

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/build.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,19 @@ jobs:
3535
fi
3636
3737
- name: golangci-lint
38-
uses: reviewdog/action-golangci-lint@v1
38+
uses: reviewdog/action-golangci-lint@v1
39+
40+
gitleaks-scan:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v3
44+
with:
45+
fetch-depth: 0
46+
- name: Run GitLeaks
47+
run: |
48+
wget https://github.com/gitleaks/gitleaks/releases/download/v8.18.2/gitleaks_8.18.2_linux_x64.tar.gz && \
49+
tar -zxvf gitleaks_8.18.2_linux_x64.tar.gz && \
50+
sudo mv gitleaks /usr/local/bin && gitleaks detect --source . -v
3951
4052
build:
4153
needs: pre-checks

0 commit comments

Comments
 (0)