Skip to content

Commit

Permalink
[feat] add trufflehog
Browse files Browse the repository at this point in the history
Signed-off-by: Kirill Kramorov <[email protected]>
  • Loading branch information
Kirill Kramorov committed Sep 18, 2024
1 parent b97269e commit 6165964
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
17 changes: 12 additions & 5 deletions .github/workflow_templates/trufflehog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,25 @@ on:
push:
branches:
- main
- feat/add-gitleaks
pull_request:

jobs:
test:
TruffleHog:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Secret Scanning
uses: trufflesecurity/trufflehog@main
- name: TruffleHog OSS
id: trufflehog
uses: trufflesecurity/trufflehog@add-actions-cli-switch
continue-on-error: true
with:
extra_args: --only-verified
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
17 changes: 12 additions & 5 deletions .github/workflows/trufflehog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,25 @@ on:
push:
branches:
- main
- feat/add-gitleaks
pull_request:

jobs:
test:
TruffleHog:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Secret Scanning
uses: trufflesecurity/trufflehog@main
- name: TruffleHog OSS
id: trufflehog
uses: trufflesecurity/trufflehog@add-actions-cli-switch
continue-on-error: true
with:
extra_args: --only-verified
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

0 comments on commit 6165964

Please sign in to comment.