Skip to content

Commit

Permalink
Add gitleaks
Browse files Browse the repository at this point in the history
  • Loading branch information
nidr0x committed Aug 17, 2024
1 parent 69faa38 commit d615aa2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/gitleaks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: gitleaks

on:
pull_request:
push:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

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 }}
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
fail_fast: false
repos:
- repo: https://github.com/onedr0p/sops-pre-commit
rev: v2.1.0
hooks:
- id: forbid-secrets
- repo: https://github.com/zricethezav/gitleaks
rev: v8.18.4
hooks:
- id: gitleaks

0 comments on commit d615aa2

Please sign in to comment.