Skip to content

gitleaks

gitleaks #31

Workflow file for this run

name: gitleaks
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: "0 4 * * *"
jobs:
scan:
name: gitleaks
runs-on: ubuntu-latest
permissions:
security-events: write
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install gitleaks
run: |
curl -sSfL https://github.com/gitleaks/gitleaks/releases/download/v8.18.4/gitleaks_8.18.4_linux_x64.tar.gz \
| tar -xz -C /usr/local/bin gitleaks
chmod +x /usr/local/bin/gitleaks
- name: Run gitleaks and output SARIF
env:
GITLEAKS_DISABLE_TELEMETRY: "true"
run: |
mkdir -p reports
gitleaks detect --source . --report-format sarif --report-path reports/gitleaks.sarif || true
- name: Upload SARIF results
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: reports/gitleaks.sarif