Skip to content

Commit

Permalink
ci: move trufflehog secret scan out of ci
Browse files Browse the repository at this point in the history
  • Loading branch information
aldy505 committed Mar 12, 2024
1 parent 7c331e4 commit 424981c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: TruffleHog OSS
uses: trufflesecurity/trufflehog@main
with:
path: ./
base: ${{ github.event.repository.default_branch }}
head: HEAD
extra_args: --debug --only-verified
uses: actions/checkout@v4

- name: Bump npm version
run: npm install -g npm@latest
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/secret-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Secret Scan

on:
push:
branches:
- master
- main
pull_request:

jobs:
trufflehog:
name: Trufflehog
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: TruffleHog OSS
uses: trufflesecurity/trufflehog@main
with:
extra_args: --debug --only-verified

0 comments on commit 424981c

Please sign in to comment.