Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github Actions Node.js 16 actions are deprecated warning

I have a github actions workflow that works but shows the following warning at the bottom of the summary page.

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-java@v3, warchant/setup-sonar-scanner@v7

While with this pipeline I am trying to use sonar-scanner, similar problems can arise without using sonar-scanner.

How can I get rid of this warning?

like image 855
muhammad ramzan Avatar asked Sep 13 '25 16:09

muhammad ramzan


1 Answers

This seems to be a warning message in GitHub Actions.

The default workflow YAML file that GitHub generated for my Python project has a similar warning message:

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v3

Although the reason is explained in this article, the solution is not so easily captured by readers from such a lengthy article.

A quick answer for those busy engineers, replace following

  • actions/checkout@v3 with actions/checkout@v4
  • actions/setup-python@v3 withactions/setup-python@v4
like image 187
Aaron Solomon Avatar answered Sep 15 '25 06:09

Aaron Solomon