The `set-env` command is disabled when running in GitHub Actions
I tried re-running the pipeline (after Initializing-KeyVault) using GitHub actions.
I got this error when deploying to Dev:
The set-env command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the ACTIONS_ALLOW_UNSECURE_COMMANDS environment variable to true. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
However, when I run this pipeline in Azure DevOps, it deploys to DEV, QA, and PROD with no issue.
Any guidance?
Update Download Keyvaylt version from uses: Azure/[email protected] --> uses: Azure/get-keyvault-secrets@v1 It will fix the issue.
Download KeyVault Secrets
- name: Download KeyVault Secrets
uses: Azure/get-keyvault-secrets@v1