Skip to content

ops(ci): pin GitHub Actions to specific commit hashes#6

Merged
capytan merged 1 commit intomainfrom
ops/pin-github-actions
Apr 20, 2025
Merged

ops(ci): pin GitHub Actions to specific commit hashes#6
capytan merged 1 commit intomainfrom
ops/pin-github-actions

Conversation

@capytan
Copy link
Owner

@capytan capytan commented Apr 20, 2025

Overview

Update GitHub Actions versions from semantic versioning (e.g., v4) to pinned commit hashes for better security and stability.

Changes

Pin the following actions to specific commit hashes:

  • actions/checkout: v4 → v4.2.2 (11bd719)
  • actions/setup-node: v4 → v4.4.0 (4993ea5)
  • actions/upload-pages-artifact: v3 → v3.0.1 (56afc60)
  • actions/deploy-pages: v4 → v4.0.5 (d6db901)

Motivation

  • Following security best practices by pinning action versions to specific commit hashes
  • Prevent unexpected changes from minor or patch version updates
  • Improve workflow reproducibility and stability

Scope

  • Only affects GitHub Pages deployment workflow
  • No impact on existing functionality

Verification

  • GitHub Pages deployment completes successfully
  • Deployed site renders correctly

@capytan capytan requested a review from Copilot April 20, 2025 05:54
@capytan capytan self-assigned this Apr 20, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the GitHub Actions workflow by pinning specific commit hashes to improve security and stability.

  • Pinned actions/checkout to commit 11bd719
  • Pinned actions/setup-node to commit 49933ea5
  • Pinned actions/upload-pages-artifact and actions/deploy-pages to respective commit hashes

@capytan capytan merged commit cf16a3d into main Apr 20, 2025
2 checks passed
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