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

Builds are failing on GitHub due to usage of set-env #724

Closed
nils-a opened this issue Nov 17, 2020 · 3 comments
Closed

Builds are failing on GitHub due to usage of set-env #724

nils-a opened this issue Nov 17, 2020 · 3 comments
Assignees
Labels
Milestone

Comments

@nils-a
Copy link
Contributor

nils-a commented Nov 17, 2020

The error is

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/

One example for a failing build is: https://github.com/cake-contrib/cake.asciidoctorj/actions/runs/367527911

The solution would be to update to GitVersion 5.5.0 (though 5.5.1 would be better, because it fixes GitTools/GitVersion#2450)

Seemingly we could also work around that by setting ACTIONS_ALLOW_UNSECURE_COMMANDS environment variable, though I have not tested that.

nils-a added a commit to cake-contrib/cake.asciidoctorj that referenced this issue Nov 17, 2020
nils-a added a commit to cake-contrib/cake.asciidoctorj that referenced this issue Nov 17, 2020
@nils-a
Copy link
Contributor Author

nils-a commented Nov 17, 2020

Confirmed: Setting ACTIONS_ALLOW_UNSECURE_COMMANDS also works.
(see cake-contrib/cake.asciidoctorj#49)

@gep13
Copy link
Member

gep13 commented Nov 19, 2020

@nils-a this is being addressed by an existing PR, but thanks for raising this!

@gep13 gep13 closed this as completed Nov 19, 2020
@cake-contrib-bot
Copy link
Contributor

🎉 This issue has been resolved in version 2.1.0 🎉

The release is available on:

Your GitReleaseManager bot 📦🚀

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

No branches or pull requests

3 participants