I have a use case where I want to use pipeline parameters in a yaml pipeline with user name and password. For the username it's easy because I simply add the following in my parameters section.
parameters:
- name: Username
type: string
displayName: Username(Email)
I also want to use password as a pipeline parameter but I haven't found a way to declare it as a secret. Is there a way to use a pipeline parameter as secret like a variable? I found a workaround so far as I declared a variable as a secret and update this variable before each run. But that's not the best experience. Maybe I have missed something in the docs?
It would be awesome if it works as in the following code:
parameters:
- name: Username
type: string
displayName: Username(Email)
- name: Password
type: secret
displayName: Password