Azure-Databricks-Dev-Ops icon indicating copy to clipboard operation
Azure-Databricks-Dev-Ops copied to clipboard

The `set-env` command is disabled when running in GitHub Actions

Open slsu0424 opened this issue 3 years ago • 1 comments

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?

slsu0424 avatar Feb 11 '22 20:02 slsu0424

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

sumitraj0103 avatar Feb 15 '22 07:02 sumitraj0103