Skip to content

Commit

Permalink
Update leaked secrets workflow (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon authored Feb 6, 2024
1 parent f6c16ec commit 08cd351
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/leaked-secrets-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
pull_request:
push:
branches:
- develop
- main
- "[0-9]+.[0-9]+.x"
workflow_dispatch:
Expand All @@ -15,10 +14,17 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: TruffleHog OSS
uses: trufflesecurity/trufflehog@901c851698ee7d9a8361969246c47d0f88e6d048
- name: TruffleHog OSS - PR
uses: trufflesecurity/trufflehog@main
with:
path: ./
base: ${{ github.event.repository.default_branch }}
head: HEAD
extra_args: --debug --only-verified
if: github.ref_name != 'main' && github.event_name != 'release'
- name: TruffleHog OSS
uses: trufflesecurity/trufflehog@main
with:
path: ./
extra_args: --debug --only-verified
if: github.ref_name == 'main' && github.event_name == 'release'

0 comments on commit 08cd351

Please sign in to comment.