Skip to content

secrets-scan

secrets-scan #81

Workflow file for this run

# Gitleaks: robust secrets scanning of diffs and history.
name: secrets-scan
on:
pull_request:
branches: [ "main", "develop" ]
push:
branches: [ "main", "develop" ]
schedule:
- cron: "35 2 * * *" # daily
permissions:
contents: read
security-events: write
jobs:
gitleaks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # scan full history on scheduled runs
- name: Run Gitleaks
uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }} # Only required for Organizations, not personal accounts.
with:
args: detect --source . --no-git=true --redact --report-format sarif --report-path gitleaks.sarif