Skip to content

ci: pin GitHub Actions to commit SHAs - #168

Merged
ADD-SP merged 2 commits into
current-devfrom
add_sp/action-sha-audit
Nov 22, 2026
Merged

ADD-SP merged 2 commits into
current-devfrom
add_sp/action-sha-audit

Conversation

@ADD-SP

@ADD-SP ADD-SP commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Motivation

Pin every third-party action in the workflow to a full 40-character commit SHA and upgrade them to versions that use Node.js 24, removing the Node.js 20 deprecation warnings.

User-facing behavior

Module behavior remains unchanged. The CI jobs and their coverage remain the same, but they use the updated actions and no longer emit Node.js 20 deprecation warnings.

Design choices

  • Select action releases using a 15-day cutoff: checkout v7.0.1, cache v6.1.0, setup-python v7.1.0, upload-artifact v7.0.2, and mise-action v5.2.7.
  • Pin every action to a full SHA while retaining version comments for auditing and future upgrades.
  • Pin dtolnay/rust-toolchain to the commit corresponding to v1. Because a commit SHA cannot encode the selected toolchain, pass stable or nightly explicitly to preserve the previous behavior.

Compatibility and migration

This changes only the CI workflow; it does not modify the module API or runtime behavior. checkout, cache, setup-python, upload-artifact, and mise-action cross major versions, with the primary migration being their move to the Node.js 24 action runtime.

Review focus

  • Verify that each pinned SHA matches the version in its comment.
  • Review action major-version compatibility and behavioral changes on ubuntu-latest.
  • Confirm that the explicit stable and nightly toolchain inputs preserve the semantics of the previous action references.

Upgrade actions to Node.js 24-compatible releases and pin each use to a reviewed full commit SHA.
Pass the workflow token to lastversion so nginx source discovery uses the authenticated GitHub API rate limit.
@ADD-SP
ADD-SP merged commit aa70d70 into current-dev Nov 22, 2026
7 checks passed
@ADD-SP
ADD-SP deleted the add_sp/action-sha-audit branch November 22, 2026 11:40
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.

1 participant