Repository navigation
Commit 1de7c5e
ci: run every workflow on merge to main, except the release (#272)
The repository became PUBLIC on 2026-08-15. GitHub bills no Actions minutes
for standard runners on public repositories, so the cost argument that kept
`code-quality` and `migrate` off `push` no longer applies. Both now also run
on merge to `main`; `ci` already did.
`release.yml` stays `workflow_dispatch` only, deliberately and by the
operator's explicit instruction. Its own header states the rule -- "Nothing
about a money-moving tool should ship on a merge" -- and it could not run on
`push` anyway: its `version` input is required and a push event supplies no
inputs, so the job would fail at its first validation step.
`migrate.yml` gains a safety property worth naming, because it is a property
of the EVENT rather than of anyone's care: `db_path` is a `workflow_dispatch`
input, and a push carries no inputs, so on a merge `inputs.db_path` renders
empty and the job always takes its `migration_smoke.py` branch. No merge can
supply a value that makes it write to a real database. The comment says so,
and says not to add a default target or read one from a repo variable, since
either would remove the property.
`code-quality.yml` keeps its weekly schedule rather than replacing it: a CVE
published against an unchanged pin is invisible to a per-merge trigger and
obvious to a scheduled one. It still does NOT run on `pull_request`, and on a
public repo that is now a security choice rather than a cost one -- fork PRs
receive no repository secrets, so every one would fail at the preflight for a
reason the contributor could not fix.
KNOWN CONSEQUENCE: SONAR_TOKEN and SNYK_TOKEN do not exist at repo or org
level, so `code-quality` will fail its preflight on every merge until they
are added. That job exists to say why in one line rather than let the
scanners fail obscurely, but it will now say it on a schedule of every merge.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent ad1ea5d commit 1de7c5e
2 files changed
Lines changed: 29 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
9 | 18 | | |
10 | 19 | | |
11 | | - | |
12 | | - | |
13 | | - | |
| 20 | + | |
14 | 21 | | |
15 | 22 | | |
16 | 23 | | |
| |||
19 | 26 | | |
20 | 27 | | |
21 | 28 | | |
| 29 | + | |
| 30 | + | |
22 | 31 | | |
23 | 32 | | |
24 | 33 | | |
| |||
0 commit comments