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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With