mirror of
https://github.com/moghtech/komodo.git
synced 2026-05-23 09:59:21 -05:00
[GH-ISSUE #659] [Bug] Secret Interpolation error in Actions possible caused by wrong RegExp #2346
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FDHoho007 on GitHub (Jul 12, 2025).
Original GitHub issue: https://github.com/moghtech/komodo/issues/659
I tried writing an action that looks something like this:
This action fails with this error:
If I instead use a variable for
bar[key]and therefore not have two closing brackets in my code it works.I therefore assume that the secret interpolation uses a regular expression, that is not lazy and therefore does not take the nearest closing double brackets but any closing bracket pair. Unfortunately I just started using Komodo and am not familiar enough with the code base to look for the error cause myself.
@mbecker20 commented on GitHub (Jul 12, 2025):
Thanks for the report, I do believe this is a bug in the variable interpolation, it cannot handle this case correctly.
The code for interpolation is already isolated in its own codebase: https://github.com/mbecker20/svi
@FDHoho007 commented on GitHub (Jul 13, 2025):
See https://github.com/mbecker20/svi/pull/1
This PR should solve this issue.