Commit 1bd52b9
committed
fix: block private repos + fix stale cache TTL comments
1. Security: reject private repos with 403 before fetching directory tree.
Server GITHUB_TOKEN could access private repos via GitHub API, which
would leak private repo structure to unauthenticated /analyze callers.
Same check the playground validation already does.
2. Fix stale comments that said '5 minutes' when TTL was bumped to 24 hours.
25 tests pass.1 parent 2535cd8 commit 1bd52b9
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
| 323 | + | |
323 | 324 | | |
324 | 325 | | |
325 | 326 | | |
| |||
359 | 360 | | |
360 | 361 | | |
361 | 362 | | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
362 | 372 | | |
363 | 373 | | |
364 | 374 | | |
| |||
389 | 399 | | |
390 | 400 | | |
391 | 401 | | |
392 | | - | |
| 402 | + | |
393 | 403 | | |
394 | 404 | | |
395 | 405 | | |
| |||
0 commit comments