-
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (24 loc) · 921 Bytes
/
Copy pathsecret-scanner.yml
File metadata and controls
28 lines (24 loc) · 921 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
# 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
# secret-scanner-reusable.yml's `gitleaks` job declares JOB-level
# `pull-requests: write` + `actions: read` (its own comment: "Reusable-
# workflow permission blocks OVERRIDE the caller's, so this MUST live here
# at source"). A caller granting less than the reusable declares is refused
# before any job starts — the observed failure was `startup_failure` with
# zero jobs and no log, which is the signature of caller-under-grant, NOT a
# scan result. gitleaks never ran at all.
pull-requests: write
actions: read
jobs:
scan:
uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@c65436ee3351cd6b0fa14b142938b195efc77586
secrets: inherit