Skip to content

ci(security): add Gitleaks secret scanning #10

ci(security): add Gitleaks secret scanning

ci(security): add Gitleaks secret scanning #10

Workflow file for this run

name: gitleaks
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
schedule:
- cron: "17 4 * * 1"
permissions:
contents: read
pull-requests: read
jobs:
scan:
name: scan
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@e0c47f4f8be36e29cdc102c57e68cb5cbf0e8d1e # v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_VERSION: "8.30.0"
GITLEAKS_ENABLE_COMMENTS: "false"
GITLEAKS_ENABLE_UPLOAD_ARTIFACT: "false"
GITLEAKS_ENABLE_SUMMARY: "false"