Skip to content

Update GitHub Actions versions for Node20 deprecation#28

Merged
m-morton merged 1 commit into
mainfrom
update-github-actions-node24
Jun 3, 2026
Merged

Update GitHub Actions versions for Node20 deprecation#28
m-morton merged 1 commit into
mainfrom
update-github-actions-node24

Conversation

@m-morton

@m-morton m-morton commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

This PR bumps the versions of GitHub Actions marketplace actions used in the workflows to versions that support Node24. These versions are being bumped because GitHub Actions is deprecating Node20 on runners in June. The action versions were pinned to full SHAs following the guidance in the GitHub Docs: Using third-party actions.

@m-morton m-morton requested a review from john-clarke June 3, 2026 00:42

@john-clarke john-clarke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@m-morton thanks for being proactive about this. Should we consider testing Node 24 already before it rolls over? I'm concerned we might forget and then when we need to build be pressed for time. Perhaps I've misunderstood the timeline.

Just one comment regarding hashes versus version tags.


steps:
- uses: actions/checkout@v4
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@m-morton Is there a reason we can't use version numbers instead of hashes?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pinning the action version to a full SHA can help prevent supply chain attacks. Because tags are mutable, if an actions repo is compromised, a malicious actor could delete the version tag and create a new one pointing at a different commit with malicious code. GitHub has introduced immutable releases that can help prevent supply chain attacks too, though they are not being used in all of the actions repos we're using in these workflows.

@m-morton

m-morton commented Jun 3, 2026

Copy link
Copy Markdown
Contributor Author

@john-clarke

Should we consider testing Node 24 already before it rolls over?

These updates to the versions of the actions will ensure that they run with Node24. Actions define the Node.js runtime that they run in in their action.yml file. By updating the version of the action, we're able to ensure that they will run in Node24 and continue to function properly after Node20 is deprecated.

@john-clarke

Copy link
Copy Markdown
Contributor

@m-morton Thanks for these clarifications. Review +

@m-morton m-morton merged commit f43bb90 into main Jun 3, 2026
6 checks passed
@m-morton m-morton deleted the update-github-actions-node24 branch June 3, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants