Skip to content

Commit

Permalink
Merge pull request #635 from nidr0x/add-gitleaks
Browse files Browse the repository at this point in the history
Add gitleaks
  • Loading branch information
nidr0x authored Aug 17, 2024
2 parents cd0c7c1 + d615aa2 commit 5fb7380
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 5fb7380

Please sign in to comment.