microsoft / setup-msbuild

A GitHub Action to facilitate configuring MSBuild in the workflow PATH for building .NET Framework applications.
MIT License
335 stars 89 forks source link

Unable to process command '::add-path::...' #84

Closed Qard closed 2 years ago

Qard commented 2 years ago

This action seems to be using unsecure commands which are rejected by default. Is there some way around that which doesn't involve disabling security?

Error: Unable to process command '::add-path::C:\Program Files\Microsoft Visual Studio\2022\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: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
timheuer commented 2 years ago

@Qard this was fixed a while back (see #26) -- are you using the latest version?

Qard commented 2 years ago

Oh, whoops. Disregard. 😅