-
Notifications
You must be signed in to change notification settings - Fork 478
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
Replace deprecated set-output function with GITHUB_OUTPUT #521
Comments
I've upgraded my actions to use the v1-node16 as mentioned in this issue - #489. But I'm still getting the warning for set-output. I believe this requires more than just upgrading the node version to 16. (Ref: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/) |
Looks like it should be fixed by 1cb4968. Packaging seems to be broken though: https://github.com/aws-actions/configure-aws-credentials/actions/runs/3245630680/jobs/5323409444:
|
These changes are now integrated into all branches. There are still some cleanup tasks here for us: we need to work around branch protection rules and get a better packaging workflow in place, and we need to get our |
@kellertk do we need to change anything in how we reference in the GitHub actions. aws-actions/[email protected] |
If you want to stay up to date as we release changes, you'll want to use |
Hi, I am using aws-actions/configure-aws-credentials@v1-node16 and I am still getting warnings about set-output |
Hi @niklas302 (and others) - are you sure this is coming from this action and not something else in your workflow? I took a quick look at the dist index.js for v1-node16 and v1, and we're using exactly the same function from the distributed @actions/[email protected] core.js, which should no longer have the set-output problem. Note: set-output had nothing to do with Node 16, this was a different problem that was fixed in @actions/[email protected]. The updated dependency is present on both the master and v1-node16 branches - we haven't run the internal workflow to update the v1 release tag yet, so if you are using @v1 in your action configuration, you'll still see this until we run that update. Because v1-node16 is a branch ref and not a tag that should already be up to date. Does this still happen if you reference a commit hash instead of a branch? You'd use "a485a1e9a44e8087c439d393c63ff3a8fd4a1d08" in place of v1-node16 in your configuration. This action itself isn't using any direct echoing of set-output to stdout. We're only using GitHub's |
|
|
@kellertk I'm still getting the warning using the still there in the following versions:
It is not present in the |
You can compare what we're publishing with what's in GitHub's source here in core/src/core.ts:192 . Specifically, there's a new check for the GITHUB_OUTPUT environment variable that wasn't present in previous versions of this file. Our published functions also contain this check. Previous versions of the GitHub source core/src/core.ts:192 don't have this extra check (Note: we haven't moved the v1 tag as I explained above. The v1 version of this action has GitHub's old code without the GITHUB_OUTPUT check in it) |
Is there any chance that the |
hey, when is v2 getting released? |
Hello, we're still seeing this warning. What could be the reason?
|
@ADTC |
Any ideas on when this branch would get a release? Not really excited on switching to a separate branch that's behind the main branch. |
@steeef @bryantbiggs if I'm correct, @aws-actions @mluypaert the Readme says both |
@ADTC I guess it depends on how long the maintainers intend on keeping |
I think that this truly should be treated as the a bug. The README says (emphasis is my own):
Clearly that is not the case. |
Hey folks, sorry for all the confusion and lack of updates
We don't plan on releasing further changes to |
Comments on closed issues are hard for our team to see. |
@peterwoodworth will there be any breaking changes moving from the old |
There shouldn't be @ADTC, if there are, please report them in an issue 🙂 |
Describe the feature
The ::set-output:: function is deprecated in favor of using the GITHUB_OUTPUT environment file
Use Case
The set-output function is insecure according to this notification: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Other Information
No response
Acknowledgements
The text was updated successfully, but these errors were encountered: