Commit 955d434
fix: avoid passing empty string argument to skopeo when raw=false (#380)
Replace static array construction with ArrayList to conditionally add
--raw, --authfile, and --daemon-host flags, preventing an empty string
from being passed as a CLI argument.
fixes #379
Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent 1f70259 commit 955d434
2 files changed
Lines changed: 22 additions & 44 deletions
File tree
- src
- main/java/io/github/guacsec/trustifyda/image
- test/java/io/github/guacsec/trustifyda/image
Lines changed: 22 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
470 | | - | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
471 | 488 | | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
| 489 | + | |
488 | 490 | | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
| 491 | + | |
509 | 492 | | |
510 | 493 | | |
| 494 | + | |
| 495 | + | |
511 | 496 | | |
512 | 497 | | |
513 | 498 | | |
| |||
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | 232 | | |
234 | 233 | | |
235 | 234 | | |
| |||
866 | 865 | | |
867 | 866 | | |
868 | 867 | | |
869 | | - | |
870 | 868 | | |
871 | 869 | | |
872 | 870 | | |
| |||
898 | 896 | | |
899 | 897 | | |
900 | 898 | | |
901 | | - | |
902 | 899 | | |
903 | 900 | | |
904 | 901 | | |
| |||
930 | 927 | | |
931 | 928 | | |
932 | 929 | | |
933 | | - | |
934 | 930 | | |
935 | 931 | | |
936 | 932 | | |
| |||
960 | 956 | | |
961 | 957 | | |
962 | 958 | | |
963 | | - | |
964 | 959 | | |
965 | 960 | | |
966 | 961 | | |
| |||
1062 | 1057 | | |
1063 | 1058 | | |
1064 | 1059 | | |
1065 | | - | |
1066 | 1060 | | |
1067 | 1061 | | |
1068 | 1062 | | |
| |||
1097 | 1091 | | |
1098 | 1092 | | |
1099 | 1093 | | |
1100 | | - | |
1101 | 1094 | | |
1102 | 1095 | | |
1103 | 1096 | | |
| |||
0 commit comments