-
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1.17 KB
/
Copy pathsecret-scanner.yml
File metadata and controls
34 lines (34 loc) · 1.17 KB
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
# SPDX-License-Identifier: MPL-2.0
name: Secret Scanner
on:
pull_request:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
scan:
# The reusable workflow's gitleaks job elevates to these permissions;
# a called workflow cannot exceed the caller's grant, so they must be
# granted here or the run dies with startup_failure.
permissions:
contents: read
uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@c65436ee3351cd6b0fa14b142938b195efc77586
secrets: inherit
trufflehog:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v4
with:
fetch-depth: 0
- name: TruffleHog Secret Scan
uses: trufflesecurity/trufflehog@27b0417c16317ca9a472a9a8092acce143b49c55 # v3.93.3
with:
# The action already appends `--fail` internally; repeating it here
# makes the trufflehog binary abort with "flag 'fail' cannot be
# repeated". Pass only `--only-verified`.
extra_args: --only-verified