question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The `add-path` command and `set-env` command is disabled

See original GitHub issue

SOLUTION: 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:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

6reactions
jaimergpcommented, Nov 17, 2020

Yep, just pinned it 😃

Dark GitHub feels wrong 😄

2reactions
bradyrxcommented, Nov 17, 2020

Done, thanks guys! Easy fix and quick communication.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found