Hi!
Bitbucket has unexpected behaviour when I use masked variables. The pipeline logs show the variable names. I attached some screenshots.
- Pipeline logs with masked variable
- Masked variable into Repository Variables. The variable value is 1
Can you help me with this issue?
Thans in advance.
This is by design. Secure variables are supposed to be secret and not exposed (for example: tokens/app passwords/ssh keys/passwords).
If you wish to see the value of that variable exposed in your build logs, you'll need to add it as a non-secured variable.
Cheers!
- Ben (Bitbucket Cloud Support)
Hi Ben!
I understand you, but my doubt is why the variable name is shown in logs if those datas shouldn´t be replaced by variables. For example, the following texts should only show the quantity failed and passed tests, not the variable name, because they are not related to that.
If you need more information, please let me know.
Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kimberling,
Pipelines has no way of knowing if the data in your secured variable is related to the values in your tests.
It simply checks to see if any values in the output match secured variables and masks them to prevent exposure of these secured variables in the build logs.
If you store "1" as an unsecured variable - you won't see this problem anymore.
Cheers!
- Ben (Bitbucket Cloud Support)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.