Upgrade GitHub Actions for Node 24 compatibility#626
Upgrade GitHub Actions for Node 24 compatibility#626Craigacp merged 2 commits intotensorflow:masterfrom
Conversation
Signed-off-by: Salman Muin Kayser Chishti <13schishti@gmail.com>
|
Looks like something changed in the default checkout logic (probably in v2, which I realise was more than 5 years ago) and now |
Yeah that seems about right, this should hopefully work now, if not we might need to do a git checkout of master. |
The spotless maven plugin uses git ratchet mode to compare against origin/master. With checkout@v6's default shallow clone, origin/master is not available, causing the format check to fail. Adding fetch-depth: 0 to the check-format job ensures the full git history is cloned including origin/master reference.
3c977ca to
80ea92e
Compare
Summary
Upgrade GitHub Actions to their latest versions to ensure compatibility with Node 24, as Node 20 will reach end-of-life in April 2026.
Changes
actions/checkoutv1v6actions/setup-javav2v5Context
Per GitHub's announcement, Node 20 is being deprecated and runners will begin using Node 24 by default starting March 4th, 2026.
Why this matters
Security Note
Actions that were previously pinned to commit SHAs remain pinned to SHAs (updated to the latest release SHA) to maintain the security benefits of immutable references.
Testing
These changes only affect CI/CD workflow configurations and should not impact application functionality. The workflows should be tested by running them on a branch before merging.