Commit ed28e01
fix: address PR review comments for alias system
Use yq strenv() for safe variable passing instead of string interpolation
to prevent injection via alias names/values. Validate alias names against
^[a-zA-Z0-9_-]+$. Use (.value | tostring) for robust alias listing. Fix
glob expansion in alias resolution with read -r -a. Add e2e test coverage
for alias set, list, remove, and invalid name rejection.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 6a9e3aa commit ed28e01
2 files changed
Lines changed: 65 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
| 312 | + | |
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| |||
8047 | 8047 | | |
8048 | 8048 | | |
8049 | 8049 | | |
8050 | | - | |
| 8050 | + | |
8051 | 8051 | | |
8052 | 8052 | | |
8053 | 8053 | | |
| |||
8071 | 8071 | | |
8072 | 8072 | | |
8073 | 8073 | | |
| 8074 | + | |
| 8075 | + | |
| 8076 | + | |
| 8077 | + | |
| 8078 | + | |
| 8079 | + | |
8074 | 8080 | | |
8075 | 8081 | | |
8076 | 8082 | | |
| |||
8084 | 8090 | | |
8085 | 8091 | | |
8086 | 8092 | | |
8087 | | - | |
| 8093 | + | |
8088 | 8094 | | |
8089 | 8095 | | |
8090 | 8096 | | |
| |||
8100 | 8106 | | |
8101 | 8107 | | |
8102 | 8108 | | |
8103 | | - | |
| 8109 | + | |
8104 | 8110 | | |
8105 | 8111 | | |
8106 | 8112 | | |
8107 | 8113 | | |
8108 | 8114 | | |
8109 | | - | |
| 8115 | + | |
8110 | 8116 | | |
8111 | 8117 | | |
8112 | 8118 | | |
| |||
8144 | 8150 | | |
8145 | 8151 | | |
8146 | 8152 | | |
8147 | | - | |
8148 | | - | |
8149 | | - | |
| 8153 | + | |
| 8154 | + | |
| 8155 | + | |
8150 | 8156 | | |
8151 | 8157 | | |
8152 | 8158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
426 | 477 | | |
427 | 478 | | |
428 | 479 | | |
| |||
0 commit comments