Commit d771aad
fix(governance): use git ls-files instead of find for banned-language checks (#248)
## Summary
- The nine `find`-based file list variables in the `Check
banned-language files` step are replaced with equivalent `git ls-files`
glob patterns
- `git ls-files` only returns tracked files, which by definition
respects `.gitignore` — vendored dirs like `deps/`, `node_modules/`,
`_build/` cannot produce false-positives
- Existing `.hypatia-baseline.json` and `.hypatia-ignore` exemption
mechanisms are unchanged
- Root cause: `developer-ecosystem@baab1534` — governance
false-positives from gitignored vendor directories
## Test plan
- [ ] CI run on a repo with `node_modules/` in `.gitignore` — no
false-positive `*.res` or `*.js` findings from vendored deps
- [ ] CI run on a clean repo — all nine banned-extension checks pass as
before
- [ ] `git ls-files` works correctly on fresh PR checkouts
(actions/checkout populates the index first)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 7732aec commit d771aad
1 file changed
Lines changed: 18 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
294 | | - | |
295 | | - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
296 | 304 | | |
297 | 305 | | |
298 | 306 | | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
306 | 312 | | |
307 | 313 | | |
308 | | - | |
309 | | - | |
| 314 | + | |
310 | 315 | | |
311 | | - | |
312 | | - | |
| 316 | + | |
313 | 317 | | |
314 | 318 | | |
315 | 319 | | |
| |||
0 commit comments