👷 Add leakage check CI action

This commit is contained in:
Jo 2025-05-31 18:41:38 +02:00
parent 914537921b
commit 2743a9d143

22
.github/workflows/check-leaks.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: "Trufflehog: check for exposed secrets"
on:
pull_request:
push:
paths:
- "**.nix"
- ".github/workflows/check-leaks.yml"
jobs:
deadnix:
name: Run trufflehog
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
persist-credentials: false
- name: TruffleHog scan
uses: trufflesecurity/trufflehog@v3.88