Skip to content

Commit

Permalink
Merge pull request #701 from Jonsy13/add-gitleaks
Browse files Browse the repository at this point in the history
Adding `gitleaks` as PR Check
  • Loading branch information
Jonsy13 committed May 20, 2024
2 parents f2b2c27 + d273ba6 commit 9689f74
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,19 @@ jobs:
fi
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v1
uses: reviewdog/action-golangci-lint@v1

gitleaks-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run GitLeaks
run: |
wget https://github.com/gitleaks/gitleaks/releases/download/v8.18.2/gitleaks_8.18.2_linux_x64.tar.gz && \
tar -zxvf gitleaks_8.18.2_linux_x64.tar.gz && \
sudo mv gitleaks /usr/local/bin && gitleaks detect --source . -v
build:
needs: pre-checks
Expand Down

0 comments on commit 9689f74

Please sign in to comment.