Commit b5c562d
ci(deploy): run the lint gate on pull requests, not only on push (#2)
The workflow triggered on `push` to master/org only, so the `lint`
(flake8) gate never ran on pull requests. Combined with branch
protection that requires a PR but had no required status check, code
could be merged through a PR with zero CI validation.
Add a `pull_request` trigger (base master/org) so `lint` runs on PRs and
becomes a status check that branch protection can require. Build/push and
deploy are guarded with `if: github.event_name == 'push'` so they stay
push-only — a PR must never build an image or deploy to homelab.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent b0a0074 commit b5c562d
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
| |||
43 | 48 | | |
44 | 49 | | |
45 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
46 | 54 | | |
47 | 55 | | |
48 | 56 | | |
| |||
86 | 94 | | |
87 | 95 | | |
88 | 96 | | |
| 97 | + | |
89 | 98 | | |
90 | 99 | | |
91 | 100 | | |
| |||
0 commit comments