Skip to content

Commit

Permalink
Merge pull request #13 from sueddeutsche/feat/PLAT-275-add-gitleaks-w…
Browse files Browse the repository at this point in the history
…orkflow

[PLAT-275] feat: add gitleaks & lefthook
  • Loading branch information
mcz-sz authored Oct 1, 2024
2 parents e9d4c2d + 80beb4a commit c04b87b
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 c04b87b

Please sign in to comment.