Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Receiving Error: Unable to process command '::set-env #20

Closed
jontreynes opened this issue Nov 16, 2020 · 9 comments
Closed

Receiving Error: Unable to process command '::set-env #20

jontreynes opened this issue Nov 16, 2020 · 9 comments

Comments

@jontreynes
Copy link

I am recieving the below error when running the task on ubuntu-latest. I see core 1.2.6 is already updated in package-lock.json.

    - name: Get KeyVault Secrets
      uses: Azure/get-keyvault-secrets@v1.0
      with:
        keyvault: "mykv"
        secrets: 'ARM-CLIENT-ID, ARM-CLIENT-SECRET, ARM-SUBSCRIPTION-ID, ARM-TENANT-ID'
      id: get_secret_action
Error: Unable to process command '::set-env name=AZURE_HTTP_USER_AGENT,::GITHUBACTIONS_GetKeyVaultSecrets_**' successfully.
Error: 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/
@bharatari
Copy link

bharatari commented Nov 16, 2020

I believe this is the same issue as #15. Even though core 1.2.6 has been updated in package.json/package-lock.json, according to #15 (comment) an updated node_modules has to be pushed along with the release, which hasn't happened yet.

@romil07
Copy link
Contributor

romil07 commented Nov 17, 2020

I have made the required changes. Please test at your end and let us know if you face any difficulty.

@Rsimk
Copy link

Rsimk commented Nov 17, 2020

Working for me.

@ryan-theta
Copy link

@romil07 working now, thanks

@jontreynes
Copy link
Author

jontreynes commented Nov 17, 2020

@romil07 still getting the same error off of latest version. I see latest version is still Azure/get-keyvault-secrets@v1.0

I do not see any node_modules updates in this PR. be1d20a

@artsheiko
Copy link
Contributor

@jontreynes , I think you use @v1.1. Please, change to :
uses: Azure/get-keyvault-secrets@v1

@maulemon
Copy link

Hi @artsheiko

Just to confirm that I've updated v1.0 to v1 and I no longer get such errors:
image

@Procee
Copy link

Procee commented Dec 5, 2020

How come that v1.0 and v1.1 is older than v1? This is very confusing and took me a while to figure out. Why is v1 not called v2 or v1.2 for that matter?

@jontreynes
Copy link
Author

jontreynes commented Dec 9, 2020

@artsheiko thanks and confirming v1 works

ShaikVasid added a commit to ShaikVasid/Azure-Databricks-Devops that referenced this issue Jul 27, 2022
Updated  get keyvault secret version to v1 instead of v1.0

Azure/get-keyvault-secrets#20 (comment)

# Download KeyVault Secrets
name: Download KeyVault Secrets
uses: Azure/get-keyvault-secrets@v1
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants