Commit e783c93
committed
ci: add CodeQL actions language + presence-gate instant-sync dispatch
Addresses two further Hypatia workflow findings surfaced on the hardening PR:
- codeql.yml (codeql_missing_actions_language): add `language: actions` so
CodeQL also scans the GitHub Actions workflows themselves (build-mode none).
- instant-sync.yml (secret_action_without_presence_gate): gate the
repository-dispatch step on the token's presence. `secrets.*` is not usable in
`if:`, so the secret is surfaced via a job-level env var and the step is
skipped when the token is absent (forks / secret not configured) instead of
failing. Behaviour is unchanged on the main repo where the secret is set.
Left intentionally untouched: scorecard.yml's reusable-workflow permissions
(the called workflow lives in hyperpolymath/standards, out of scope here, and is
already being reworked on another branch) and the pre-existing code-safety
findings (Idris2 believe_me axioms — deliberately kept and gated per #152; Agda
funext postulate; ReScript Obj.magic; Rust FFI unsafe blocks), none of which are
in this PR's diff.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KfgJznd6jzSeDYsSXGAXkU1 parent ba2cdbb commit e783c93
2 files changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | | - | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
| |||
0 commit comments