Skip to content

Commit

Permalink
[PLAT-275] feat: add gitleaks & lefthook
Browse files Browse the repository at this point in the history
  • Loading branch information
mcz-sz committed Oct 1, 2024
1 parent e9d4c2d commit 80beb4a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/gitleaks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: gitleaks

on:
push:
workflow_dispatch:

jobs:
gitleaks:
uses: sueddeutsche/plat-reusable-workflows/.github/workflows/gitleaks.yaml@v3
secrets: inherit
4 changes: 4 additions & 0 deletions .lefthook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pre-commit:
commands:
gitleaks:
run: gitleaks protect --staged --verbose --redact --no-color

0 comments on commit 80beb4a

Please sign in to comment.