[b9e282]: / .github / workflows / trufflehog.yml

Download this file

39 lines (33 with data), 732 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: TruffleHog Scan
on:
push:
branches:
- main
pull_request:
merge_group:
permissions:
contents: read
id-token: write
issues: write
pull-requests: write
jobs:
TruffleHog:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: TruffleHog OSS
if: github.event_name != 'merge_group'
id: trufflehog
uses: trufflesecurity/trufflehog@main
continue-on-error: true
with:
extra_args: --results=verified,unknown
- name: Scan Results Status
if: steps.trufflehog.outcome == 'failure'
run: exit 1