qetza / replacetokens-task

Azure Pipelines task to replace tokens in files with variables.
MIT License
11 stars 2 forks source link

String value in RFC3339 date format is changed #54

Open MarianSimo opened 4 weeks ago

MarianSimo commented 4 weeks ago

Hello folks,

Having issue with string variable with value of date in RFC3339 format. Replace Token modify this string from RFC3339 to computer date time format. The final replacement has been modified to wrong format.

Example: The source Azure DevOps variable: image

Replace task with modified values image

Reading variables directly from dev ops by pipeline:

image

I need to replace string as is written in devops variable into target without any modification (1 to 1).

qetza commented 4 weeks ago

Hi @MarianSimo, Unfortunately this is not a bug from the task but from the SDK, the issue was already raised but so far no fix: https://github.com/microsoft/azure-pipelines-agent/issues/4530

One workaround seems to set those variables as secrets.

MarianSimo commented 3 weeks ago

Thank you for the answer. The secret can be a way. Thank you