1- # SPDX-License-Identifier: MPL-2.0
2- # Hypatia Neurosymbolic CI/CD Security Scan
1+ # SPDX-License-Identifier: PMPL-1.0-or-later
32name : Hypatia Security Scan
43
54on :
65 push :
7- branches : [ main, master, develop ]
6+ branches : [main, master, develop]
87 pull_request :
9- branches : [ main, master ]
8+ branches : [main, master]
109 schedule :
11- - cron : ' 0 0 * * 0' # Weekly on Sunday
10+ - cron : ' 0 0 * * 0'
1211 workflow_dispatch :
13- # Estate guardrail: cancel superseded runs so re-pushes don't pile up
14- # queued runs across the estate. Safe here because this workflow only
15- # performs read-only checks/lint/test/scan with no publish or mutation.
16- concurrency :
17- group : ${{ github.workflow }}-${{ github.ref }}
18- cancel-in-progress : true
1912
2013permissions :
2114 contents : read
22- # security-events: write serves two purposes (write implies read):
23- # 1. read — lets the built-in GITHUB_TOKEN query this repo's own
24- # Dependabot alerts via the Hypatia DependabotAlerts rule
25- # (DA001-DA004). Without read, `scan_from_path` gets HTTP 403
26- # and the rule silently returns no findings.
27- # See 007-lang/audits/audit-dependabot-automation-gap-2026-04-17.md.
28- # 2. write — lets the "Upload SARIF to code scanning" step publish
29- # Hypatia findings to the Security → Code scanning page so they
30- # are triaged/deduplicated like CodeQL alerts instead of living
31- # only in a build artifact nobody is required to look at.
32- # See hyperpolymath/burble#35 (SARIF integration).
33- # This is a single-job workflow, so job-level scoping would not
34- # narrow the grant further; it stays workflow-level and documented.
35- security-events : write
36- # pull-requests: write lets the advisory "Comment on PR with findings"
37- # step post its summary. Without it the built-in GITHUB_TOKEN gets
38- # "Resource not accessible by integration" and (absent continue-on-error)
39- # hard-fails the scan — exactly what the gate-decoupling design forbids.
40- pull-requests : write
15+ security-events : read
4116
4217jobs :
4318 scan :
@@ -412,4 +387,4 @@ jobs:
412387 repo: context.repo.repo,
413388 issue_number: context.issue.number,
414389 body: comment
415- });
390+ });
0 commit comments