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

Add Path Error #42

Closed
davewolfe-asti opened this issue Jan 8, 2021 · 3 comments
Closed

Add Path Error #42

davewolfe-asti opened this issue Jan 8, 2021 · 3 comments

Comments

@davewolfe-asti
Copy link

Getting an error that the Add-Path option is deprecated, and that environment variables should be used. I'm new to using GitHub actions so some of the examples I'm looking at are breaking.

@timheuer
Copy link
Member

timheuer commented Jan 8, 2021

Hi @davewolfe-asti this is a dupe of #26 and has been resolved in latest version if you change to that.

@timheuer timheuer closed this as completed Jan 8, 2021
@imba-tjd
Copy link

imba-tjd commented Mar 13, 2021

Hi @timheuer I'm still getting this error. As you can see I'm using @master

Run microsoft/setup-msbuild@master
  with:
C:\ProgramData\Chocolatey\bin\vswhere.exe -products * -requires Microsoft.Component.MSBuild -property installationPath -latest
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise
Error: Unable to process command '::add-path::C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin' successfully.
Error: The `add-path` 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: github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands

Interesting, when I use @v1, the issue disappears.

@timheuer
Copy link
Member

@imba-tjd Don't use the '@master' versioning on Actions -- always use a version/hash/tag -- as you note using the appropriate version per the documentation works.

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

No branches or pull requests

3 participants