Skip to content

Commit 31aa78b

Browse files
authored
Merge pull request #495 from Jonsy13/add-gitleaks
Adding `gitleaks` as PR Check
2 parents 2b2646e + 9d6dfb2 commit 31aa78b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,18 @@ jobs:
4949
vuln-type: 'os,library'
5050
severity: 'CRITICAL,HIGH'
5151

52+
gitleaks-scan:
53+
runs-on: ubuntu-latest
54+
steps:
55+
- uses: actions/checkout@v3
56+
with:
57+
fetch-depth: 0
58+
- name: Run GitLeaks
59+
run: |
60+
wget https://github.com/gitleaks/gitleaks/releases/download/v8.18.2/gitleaks_8.18.2_linux_x64.tar.gz && \
61+
tar -zxvf gitleaks_8.18.2_linux_x64.tar.gz && \
62+
sudo mv gitleaks /usr/local/bin && gitleaks detect --source . -v
63+
5264
image-build:
5365
runs-on: ubuntu-latest
5466
needs: pre-checks

0 commit comments

Comments
 (0)