ci-cd:Update GitHub Actions to current stable releases (#21107)
None; GitHub Actions dependency maintenance.
Summary of the issue:
Several workflows reference older stable GitHub Actions releases, and setup-python and setup-uv use inconsistent versions across workflows. These references miss upstream fixes, including the input-injection fix in alls-green, cache access improvements, and more reliable dependency setup.
Description of user facing changes:
No changes to NVDA's user-facing behavior.
Description of developer facing changes:
Update the following six GitHub Actions across six workflow files:
GitHub Action Previous reference Updated reference Reason for updating Official release pages
actions/setup-python v6 (with v7 already used by the Crowdin download workflow) v7 Make Python setup consistent across workflows and include upstream manifest-fetch validation/retries, annotation fixes, and dependency updates in the ESM-based release series. v7.0.0, v7.1.0
astral-sh/setup-uv v7, v8.3.2 v10.3.3 Use one current immutable release throughout the workflows. It improves manifest retrieval through the Astral mirror with a GitHub fallback, fixes requirement-specifier handling, and corrects cache-save reporting. v10.3.3
actions/cache, actions/cache/save, actions/cache/restore v5 v6 Update the cache action and its save/restore variants together, including upstream handling of read-only cache access. v6.1.0
re-actors/alls-green v1.2.2 v1.3.0 Include the fix for input/template injection (GHSA-gj76-h2ch-5m76) and correct reporting of allowed skipped jobs. v1.3.0
dawidd6/action-send-mail v18 v24 Refresh the email action's Nodemailer, Undici, and other bundled dependencies to the versions shipped in the current stable release. v24
j178/prek-action v2 v3.1.0 Adopt the immutable v3 release series, which includes cache-key hashing fixes and improvements to download verification and version selection. v3.0.0, v3.1.0
Description of development approach:
Keep each action upgrade in a separate commit so that regressions can be traced or reverted by action name. Group the cache action's save/restore variants with the main cache action.
Preserve existing major-version references where upstream still supports them. Use exact release tags for setup-uv and prek-action, whose new release series no longer publish moving major/minor tags.
Explicitly set prune-cache: true in all 14 setup-uv steps. Upstream changed this default to false in v9; setting it explicitly preserves the previous cache-pruning behavior. See the v9.0.0 release notes.
Check existing action inputs against the updated releases. Keep the existing Python versions, architectures, permissions, and job structure.