Commit 5c4faa8
committed
fix(policies): split comma-separated values on each merged input line
When a policy input declared as a comma-separated value in a workflow
contract was merged with a runtime value supplied via
--policy-input-from-file, getInputArguments split the merged string on
newlines first and returned the multi-line slice as-is, skipping the
per-value comma splitting. This collapsed the contract's comma-joined
segment into a single literal glob containing commas that matched
nothing.
Normalize consistently by splitting each line on commas as well, so a
comma-separated segment is always expanded into separate values
regardless of whether a runtime value was appended.
Assisted-by: Claude Code
Signed-off-by: Javier Rodriguez <javier@chainloop.dev>
Chainloop-Trace-Sessions: 20709f88-f555-488c-a8ae-e2d60903aff5, 7c9eb197-bbea-464f-9444-cd17ac09039c1 parent a7c7890 commit 5c4faa8
2 files changed
Lines changed: 37 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
776 | | - | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
777 | 782 | | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
787 | 786 | | |
788 | 787 | | |
789 | | - | |
790 | | - | |
791 | | - | |
| 788 | + | |
792 | 789 | | |
793 | 790 | | |
794 | 791 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
799 | 799 | | |
800 | 800 | | |
801 | 801 | | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
802 | 829 | | |
803 | 830 | | |
804 | 831 | | |
| |||
0 commit comments