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

Secret management for Azure Pipelines #958

Open
matkoch opened this issue Jun 27, 2022 · 2 comments
Open

Secret management for Azure Pipelines #958

matkoch opened this issue Jun 27, 2022 · 2 comments

Comments

@matkoch
Copy link
Member

matkoch commented Jun 27, 2022

Description

Given Azure CLI is present and the user is authenticated. The nuke :secrets command could set the secret variable directly in Azure DevOps.

  • Get organization and project from Git Remote
    git@ssh.dev.azure.com:v3/<organization/<project>/<repo-name>
    
  • Let user choose from pipelines (if more than one)
    az pipelines list --organization <organization> --project <project>
    
  • Set secret value
    az pipelines variable create --name <secret-name> --value <secret-value> --organization <organization> --project <project> --pipeline-name <pipeline>
    

Usage Example

See https://nuke.build/docs/global-tool/secrets/

Alternative

No response

@soumya-ranjan-pratap

This comment was marked as spam.

@matkoch
Copy link
Member Author

matkoch commented Oct 2, 2023

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants