amazon-ecs-deploy-task-definition icon indicating copy to clipboard operation
amazon-ecs-deploy-task-definition copied to clipboard

Node 16 Deprecation Warning

Open christian-ci opened this issue 1 year ago • 5 comments

Describe the bug The GitHub Actions workflow is generating a deprecation warning due to the use of Node.js 16. GitHub Actions now requires the use of Node.js 20, as Node.js 16 actions have been deprecated.

To Reproduce Steps to reproduce the behavior:

  1. Go to the GitHub repository containing the workflow.
  2. Run the GitHub Actions workflow.
  3. Observe the deprecation warning in the workflow logs.
  4. The warning specifically mentions the use of Node.js 16 in aws-actions/amazon-ecs-deploy-task-definition@v1.

Expected behavior The expected behavior is for the GitHub Actions workflow to run without any deprecation warnings. It should use the updated Node.js 20 environment for all actions.

Screenshots Screenshot 2024-01-25 at 15 51 43

Desktop (please complete the following information): OS Agnostic

Additional context The deprecation of Node.js 16 actions is part of GitHub's ongoing maintenance and update of their Actions infrastructure. More information about this transition can be found at: GitHub Blog Changelog.

christian-ci avatar Jan 25 '24 18:01 christian-ci

Any updates to this?

TheMoonDawg avatar Mar 05 '24 18:03 TheMoonDawg

Looks like time is running out, did someone test existing action already with node20?

Following on from our warning in workflows using Node16 we will start enforcing the use of Node20 rather than Node16 on the 13th of May.

https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/

project0 avatar Mar 11 '24 08:03 project0

Asked AWS support directly about status of this action. In the reply they mentioned that they are aware of the situation, however they are working to determine internal ownership - which to me sounds like there's no one working on this from AWS side. They don't have ETA on updates.

Sounds like a great time to start some community ECS actions.

msusta avatar Mar 17 '24 21:03 msusta

@msusta Thanks a lot for asking them. I am in to start ECS actions community driven. I can only contribute in python though. Let me know.

christian-ci avatar Mar 17 '24 22:03 christian-ci

I know it's not ideal, but the changes have been at least merged in. Our team is pinning to the commit sha for the time being, holding out hope they will go back to cutting releases with tags. A break the glass solution for sure as we approach May 13th. We did this for another action they aren't cutting releases for anymore as well.

Also, I can confirm by pinning that everything has worked as expected for us and no more warnings appear on our runs relating to this action.

uses: aws-actions/amazon-ecs-deploy-task-definition@302cdaeb9626318487c21c0fa156adc7bce7f32b

jlauzze avatar Mar 26 '24 17:03 jlauzze

@jlauzze Not reassuring you already had to do this workaround for a separate AWS action 🤣

TheMoonDawg avatar Apr 22 '24 16:04 TheMoonDawg

I've also had to pin the commit sha's for both this action and aws-actions/amazon-ecs-render-task-definition.

Not great that releases aren't being cut when the deadline is this close, but it's worth noting that pinning commit shas instead of major version tags is actually better practice (just a lot less convenient).

tristanhill-iris avatar Apr 25 '24 14:04 tristanhill-iris