-
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (24 loc) · 840 Bytes
/
Copy pathhypatia-scan.yml
File metadata and controls
27 lines (24 loc) · 840 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
# SPDX-License-Identifier: MPL-2.0
name: Hypatia Security Scan
on:
push:
branches: [main, master, develop]
pull_request:
branches: [main, master]
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:
permissions:
actions: read
contents: read
# MUST be `write`, not `read`. hypatia-scan-reusable.yml declares
# `security-events: write` so it can upload SARIF. A called workflow may
# never request more than its caller grants: if it does, GitHub rejects the
# run at *startup*, before any job is created — `startup_failure`, zero jobs,
# and `gh run view --log-failed` returns "log not found". Granting `read`
# here did not degrade the scan, it silently prevented it from ever running.
# See standards#451.
security-events: write
jobs:
scan:
uses: ./.github/workflows/hypatia-scan-reusable.yml