puzzlevision/.github/workflows/check-leaks.yml
Jo d65c18cf32
Some checks failed
Nix: check for unused code / Run deadnix (push) Has been cancelled
Trufflehog: check for exposed secrets / Run trufflehog (push) Has been cancelled
👷 Simplify checkout step in trufflehog workflow
2025-06-20 00:56:13 +02:00

37 lines
792 B
YAML

name: "Trufflehog: check for exposed secrets"
on:
workflow_dispatch:
pull_request:
push:
paths:
- "**.nix"
- ".github/workflows/check-leaks.yml"
permissions:
contents: read
id-token: write
issues: write
pull-requests: write
jobs:
deadnix:
name: Run trufflehog
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
fetch-depth: 0
- id: trufflehog
name: TruffleHog scan
uses: trufflesecurity/trufflehog@main
continue-on-error: true
with:
path: ./
base: "${{ github.event.repository.default_branch }}"
extra_args: --debug --only-verified
- name: Scan Results Status
if: steps.trufflehog.outcome == 'failure'
run: exit 1