Skip to content

Commit

Permalink
Add trufflehog github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadUsama-afk-equinor authored and UsamaEquinorAFK committed Dec 5, 2023
1 parent 1cb0a1e commit ae01ef7
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/scan_with_trufflehog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: TruffleHog Scan

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

jobs:
trufflehog-scan:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: TruffleHog OSS
id: trufflehog
uses: trufflesecurity/trufflehog@v3.63.1
continue-on-error: true
with:
path: ./
base: "${{ github.event.repository.default_branch }}"
head: HEAD
extra_args: --debug

- name: Scan Results Status
if: steps.trufflehog.outcome == 'failure'
run: exit 1

0 comments on commit ae01ef7

Please sign in to comment.