Commit 784d1e7
authored
ci(lint): scope super-linter to changed files + repo's actual languages (#68)
* ci(lint): only validate changed files, scope linters to languages in repo
Lint was running on `claude/**` push events with no DEFAULT_BRANCH and
no VALIDATE_ALL_CODEBASE setting, causing super-linter to fall back to
scanning the whole repo. That surfaced unrelated pre-existing failures
(Python, TypeScript, HTML, Markdown linters firing on files no PR ever
touched) and made the check effectively unmergeable for any branch.
Changes:
- Add `master` to push/PR branch filters so the default branch is
actually linted (it had `total_count: 0` runs before this).
- Set `DEFAULT_BRANCH: master` so super-linter can diff against the
right base in push events.
- Set `VALIDATE_ALL_CODEBASE: false` explicitly to enforce
changed-files-only behavior.
- Disable the language linters that don't apply to this repo's actual
content (no Python, TypeScript, HTML, or natural-language prose to
lint). Keep BASH, YAML, GitHub Actions, JSON, Checkov, Markdown,
and codespell.
* ci(lint): satisfy yamllint/prettier/zizmor on lint.yml itself
- add `---` document start
- quote `"on":` so yamllint's truthy rule stops fighting prettier
- pin actions/checkout and super-linter to SHA (zizmor unpinned-uses)
- add persist-credentials: false on checkout1 parent 9143162 commit 784d1e7
1 file changed
Lines changed: 27 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | | - | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
26 | | - | |
| 30 | + | |
| 31 | + | |
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
32 | | - | |
| 37 | + | |
| 38 | + | |
33 | 39 | | |
34 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
0 commit comments