24 lines
742 B
YAML
24 lines
742 B
YAML
name: gitleaks
|
|
on:
|
|
pull_request:
|
|
push:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 4 * * *" # run once a day at 4 AM
|
|
jobs:
|
|
scan:
|
|
name: gitleaks
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
# - uses: gitleaks/gitleaks-action@v2
|
|
# env:
|
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
# GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}
|
|
- name: Run GitLeaks
|
|
run: |
|
|
wget https://github.com/gitleaks/gitleaks/releases/download/v8.30.0/gitleaks_8.30.0_linux_x64.tar.gz && \
|
|
tar -zxvf gitleaks_8.30.0_linux_x64.tar.gz && \
|
|
sudo mv gitleaks /usr/local/bin && gitleaks detect --platform --source . -v |