Upgrade GitHub Actions for Node 24 compatibility by salmanmkc · Pull Request #1909 · huggingface/smolagents (original) (raw)

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

Action Old Version(s) New Version Release Files
actions/checkout v2, v4 v6 Release quality.yml, tests.yml, trufflehog.yml
actions/setup-python v2 v6 Release quality.yml, tests.yml

Context

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.