The `add-path` command and `set-env` command is disabled
See original GitHub issueSOLUTION: Simply update your goanpeca/setup-miniconda@v1
hook to conda-incubator/setup-miniconda@v2
and the error should go away.
It looks like something changed to Github Actions today, as our setup-miniconda
hook is breaking with the following error:
Add "/usr/share/miniconda/condabin" to PATH
Error: Unable to process command '::add-path::/usr/share/miniconda/condabin' 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/
/usr/share/miniconda/condabin/conda config --add pkgs_dirs /home/runner/conda_pkgs_dir
Error: Unable to process command '::set-env name=CONDA_PKGS_DIR::/home/runner/conda_pkgs_dir' 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/
See our error in more detail here.
And the workflow code here.
I found that this is affecting other hooks, so I imagine it must be a Github Actions change. E.g., https://github.com/djjudas21/camerahub/issues/630, https://github.com/apache/incubator-tvm/issues/6925.
EDIT: Actually it looks like GA announced this back in October, but went into effect today.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:7
- Comments:11 (7 by maintainers)
Top Results From Across the Web
The `set-env` command is deprecated and will be disabled on ...
The `set-env` command is deprecated and will be disabled on November 16th. Please upgrade to using Environment Files.
Read more >How to set your $PATH variable in Linux - Opensource.com
For Bash, you simply need to add the line from above, export PATH=$PATH:/place/with/the/file, to the appropriate file that will be read when your...
Read more >github actions - How to avoid setting ...
SetEnvCommandExtension.ProcessCommand(IExecutionContext context ... Exception: The `add-path` command is disabled. Please upgrade to using ...
Read more >How to correctly add a path to PATH? - Unix StackExchange
The simple stuff. PATH=$PATH:~/opt/bin. or. PATH=~/opt/bin:$PATH. depending on whether you want to add ~/opt/bin at the end (to be searched ...
Read more >Setting the PATH environment variable to include the ... - IBM
The command to set the PATH environment variable depends on the shell that you are using. If you are using the Bourne, Korn,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Dark GitHub feels wrong 😄
Done, thanks guys! Easy fix and quick communication.