👷 More accurate trufflehog scan configuration

This commit is contained in:
Jo 2025-05-31 18:55:12 +02:00
parent 02bf31fa25
commit 86a6674214

View file

@ -7,6 +7,12 @@ on:
- "**.nix" - "**.nix"
- ".github/workflows/check-leaks.yml" - ".github/workflows/check-leaks.yml"
permissions:
contents: read
id-token: write
issues: write
pull-requests: write
jobs: jobs:
deadnix: deadnix:
name: Run trufflehog name: Run trufflehog
@ -16,7 +22,18 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
ref: ${{ github.ref_name }} ref: ${{ github.ref_name }}
persist-credentials: false fetch-depth: 0
- name: TruffleHog scan - id: trufflehog
uses: trufflesecurity/trufflehog@v3.88.35 name: TruffleHog scan
uses: trufflesecurity/trufflehog@add-actions-cli-switch
continue-on-error: true
with:
path: ./
base: "${{ github.event.repository.default_branch }}"
head: HEAD
extra_args: --debug --only-verified
- name: Scan Results Status
if: steps.trufflehog.outcome == 'failure'
run: exit 1