Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting Azure DevOps variable as secret #379

Closed
stijnmoreels opened this issue Mar 24, 2023 · 0 comments · Fixed by #380
Closed

Setting Azure DevOps variable as secret #379

stijnmoreels opened this issue Mar 24, 2023 · 0 comments · Fixed by #380
Assignees
Labels
area:devops All issues related to Azure DevOps enhancement New feature or request
Milestone

Comments

@stijnmoreels
Copy link
Member

Is your feature request related to a problem? Please describe.
Currently, we provide the capability to set an Azure DevOps pipeline variable in our Arcus.Scripting.DevOps PowerShell module, but this functionality does not provide any switch parameter to save the variable as a 'secret' pipeline variable (value won't be shown in logs).

Describe the solution you'd like
Add a switch parameter to the Set-AzDevOpsVariable command so that we can save secret pipeline variables.

Additional context
Marking a pipeline variable as a secret is done by adding issecret=true to the outputed text:

Write-Host "##vso[task.setvariable variable=$secretName;issecret=true]$secretValue`
@stijnmoreels stijnmoreels added enhancement New feature or request area:devops All issues related to Azure DevOps labels Mar 24, 2023
@stijnmoreels stijnmoreels added this to the v0.9.0 milestone Mar 24, 2023
@pim-simons pim-simons self-assigned this Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:devops All issues related to Azure DevOps enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants