Vault server version
v1.19.2
vault-action version
v3.3.0
Describe the bug
If multiple dots (.) are contained in the name of a secret, only the first dot is replaced (__). All other dots are removed.
To Reproduce
Create a secret named i.e. my.secret.value
Expected output key: MY__SECRET__VALUE
Actual output key: MY__SECRETVALUE
Expected behavior
According to the documentation and a response to another issue, this is not intended, and all dots should be replaced with __ instead of just the first one.
Additional context
Problem should be this line: .replace(".", "__")
If pattern is a string, only the first occurrence will be replaced.
(see replace )
Vault server version
v1.19.2
vault-action version
v3.3.0
Describe the bug
If multiple dots (
.) are contained in the name of a secret, only the first dot is replaced (__). All other dots are removed.To Reproduce
Create a secret named i.e.
my.secret.valueExpected output key:
MY__SECRET__VALUEActual output key:
MY__SECRETVALUEExpected behavior
According to the documentation and a response to another issue, this is not intended, and all dots should be replaced with
__instead of just the first one.Additional context
Problem should be this line: .replace(".", "__")
(see replace )