Skip to content

chore(ci): pin python workflow actions to commit SHAs#1874

Merged
chaliy merged 1 commit into
mainfrom
fix/issue-1864-pin-python-actions
Jun 5, 2026
Merged

chore(ci): pin python workflow actions to commit SHAs#1874
chaliy merged 1 commit into
mainfrom
fix/issue-1864-pin-python-actions

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Jun 5, 2026

Summary

  • Pins all uses: action refs in .github/workflows/python.yml from mutable tags to immutable commit SHAs
  • Keeps the original tag as a comment for readability
  • Actions pinned: actions/checkout, astral-sh/setup-uv, actions/setup-python, dtolnay/rust-toolchain, Swatinem/rust-cache, actions/upload-artifact

Test plan

  • CI passes on this PR
  • All pinned SHAs verified against current tag refs via gh api

Closes #1864

Replaces mutable tags (v6, v7, nightly, 1.95.0) with immutable commit
SHAs to prevent supply-chain attacks via tag mutation. Fixes #1864.
Copilot AI review requested due to automatic review settings June 5, 2026 00:41
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Jun 5, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bashkit 7d5801c Commit Preview URL

Branch Preview URL
Jun 05 2026, 12:42 AM

Copy link
Copy Markdown

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 hardens the Python CI workflow against supply-chain risks by pinning all GitHub Action uses: references in .github/workflows/python.yml to immutable commit SHAs (addressing issue #1864), while preserving the prior ref as an inline comment for readability.

Changes:

  • Replaced mutable action refs (e.g., @v*, @nightly) with full commit SHAs across all jobs in the Python workflow.
  • Added inline comments to retain the prior human-friendly ref.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1.95.0
uses: dtolnay/rust-toolchain@e081816240890017053eacbb1bdf337761dc5582 # 1.95.0
# @nightly matches the repo's other nightly jobs (fuzz.yml, nightly.yml,
# ci.yml); the exact nightly is pinned via the toolchain: input below.
uses: dtolnay/rust-toolchain@nightly
uses: dtolnay/rust-toolchain@5b842231ba77f5c045dba54ac5560fed2db780e2 # nightly
@chaliy chaliy merged commit eb6d38f into main Jun 5, 2026
26 checks passed
@chaliy chaliy deleted the fix/issue-1864-pin-python-actions branch June 5, 2026 00:51
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.

[DeepSec][MEDIUM] CI workflow executes mutable GitHub Action refs

2 participants