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

GHA Deprecation: "add-path" and "set-env" #84

Closed
mrmundt opened this issue Oct 8, 2020 · 12 comments
Closed

GHA Deprecation: "add-path" and "set-env" #84

mrmundt opened this issue Oct 8, 2020 · 12 comments

Comments

@mrmundt
Copy link

mrmundt commented Oct 8, 2020

GitHub Actions is deprecating set-env and add-path due to a security risk: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

Currently, the `setup-miniconda' action has these lines:

$ grep setup-miniconda/ -nre "set-env"
setup-miniconda//dist/delete/index.js:577: *   ::set-env name=MY_VAR::some value
setup-miniconda//dist/delete/index.js:700:        command_1.issueCommand('set-env', { name }, convertedVal);
setup-miniconda//dist/setup/index.js:17524: *   ::set-env name=MY_VAR::some value
setup-miniconda//dist/setup/index.js:20008:        command_1.issueCommand('set-env', { name }, convertedVal);
$ grep setup-miniconda/ -nre "add-path"
setup-miniconda//dist/delete/index.js:722:        command_1.issueCommand('add-path', {}, inputPath);
setup-miniconda//dist/setup/index.js:20030:        command_1.issueCommand('add-path', {}, inputPath);

Which cause this warning when using it in a GHA workflow:

The `add-path` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
The `set-env` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
@bollwyvl
Copy link
Contributor

bollwyvl commented Oct 8, 2020

Looks like this is a duplicate of #78. #79 fixed this, we'll be doing a release soon!

@mrmundt
Copy link
Author

mrmundt commented Oct 8, 2020

Great! Sorry, I only searched open PRs before submitting this.

@bollwyvl
Copy link
Contributor

bollwyvl commented Oct 8, 2020

No worries. We're working on a CHANGELOG (#85) as part of the next release, so it should be clearer in the future!

@mrmundt
Copy link
Author

mrmundt commented Nov 3, 2020

Checking in. Do you have an ETA for the new release?

@goanpeca
Copy link
Member

goanpeca commented Nov 4, 2020

@bollwyvl sorry this has been a busy/weird month. Just to catch up. We just need to merge the changelog PR work to cut a new release?

Let me know, so we can get this out soon!

Cheers

@bollwyvl
Copy link
Contributor

bollwyvl commented Nov 4, 2020

think so! If you can review the changelog so we can steal some of that sweet, sweet tribal knowledge from your brain... i'll rekick it anyway, just to see how we're doing...

@henryiii
Copy link

henryiii commented Nov 7, 2020

Don't forget this! ;) (Google has released the details of the exploit, so it's pretty high priority for GH to shut it down, I believe)

@goanpeca
Copy link
Member

goanpeca commented Nov 9, 2020

So can we close this now @bollwyvl 🙃 ?

@bollwyvl
Copy link
Contributor

bollwyvl commented Nov 9, 2020

I had been testing with 16930e6 with no warnings, so i'd say we're good!

@bollwyvl bollwyvl closed this as completed Nov 9, 2020
@henryiii
Copy link

henryiii commented Nov 9, 2020

Ouch, the version bumped to 2, so @v1 won't pick this up! I'm moving to using dependabot and exact versions for non-official actions (since not all projects keep the "vX" tag up), but not everywhere yet. Was there something backward incompatible that was added? Changelog only lists this changed warning and the addition of explicit envs.

(Not a complaint, just a question :) Thanks for the release!)

@dhimmel
Copy link

dhimmel commented Nov 10, 2020

Ouch, the version bumped to 2, so @v1 won't pick this up!

Also wondering whether this could be backported to v1 (or just tagged with v1 since its back compat). We use this action in Manubot, where a large number of users have cloned our CI script, and don't update that frequently. See manubot/rootstock#388.

v2 was just released, so there is going to be a one week time from when conda-incubator/setup-miniconda@v1 was the latest version till when it stops working:

The set-env command is deprecated and will be disabled on November 16th.

In Manubot's case, users also have to upgrade due to an unrelated issue, so it's not essential for us. But might be for others?

@goanpeca
Copy link
Member

@bollwyvl thoughts?

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

5 participants