Skip to content

chore(ci): pin latest GitHub Actions by SHA and migrate to ubuntu-26.04 - #329

Open
xSAVIKx wants to merge 3 commits into
mainfrom
chore/update-ci-actions-ubuntu-26.04
Open

xSAVIKx wants to merge 3 commits into
mainfrom
chore/update-ci-actions-ubuntu-26.04

Conversation

@xSAVIKx

@xSAVIKx xSAVIKx commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Related Issue: N/A

Type of change:

  • Other (please describe): CI maintenance and workflow security hardening

Description:

Updates GitHub Actions workflows (.github/workflows/main.yml and .github/workflows/pypi-release.yml) to improve supply-chain security and modernize the Ubuntu runner environment:

  1. Updated all GitHub Actions to their latest versions and pinned by full 40-character commit SHA (with version comments):

    Action Previous Updated Pinned SHA
    actions/checkout @v6 v7.0.1 3d3c42e5aac5ba805825da76410c181273ba90b1
    astral-sh/setup-uv @v8.1.0 v10.4.0 1db35dd8eee11c5894872e0b383ae6c406cf738d
    actions/upload-artifact @v7.0.1 v7.0.2 cf430e030ddbb5b0abf93d22962f4752f3646cd9
    actions/download-artifact @v8.0.1 v8.0.2 9000827ccba6bdab643e8b6fd33ac0654aef8333
    pypa/gh-action-pypi-publish @release/v1 v1.14.3 7245906fb61fa33a13554f9d5fb856fe61758086
    pxpm/github-tag-action @1.0.1 1.0.1 07a0f099a1db2ef2c50367665450b9f6ef3b6e9d
  2. Migrated pinned Ubuntu CI runners to ubuntu-26.04:

    • .github/workflows/main.yml: lint job pinned to ubuntu-26.04 (test matrix remains on ubuntu-latest).
    • .github/workflows/pypi-release.yml: build_dist, publish, and tag jobs (ubuntu-24.04 → ubuntu-26.04).
  3. Workflow security hardening:

    • Added explicit least-privilege permissions: blocks (contents: read at workflow level; contents: write scoped only to the tag job in pypi-release.yml).
    • Added persist-credentials: false to all actions/checkout steps.

Verified locally with YAML parsing, SHA verification against GitHub API, zizmor (0 low/medium/high findings), and pre-commit hooks.


Pre-submission checklist:

  • I have read the CONTRIBUTING.md file.
  • I have signed off my commits using git commit --signoff.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have updated the documentation (README.md, CHANGELOG.md, etc.) as necessary.
  • I have run pre-commit and tox and all checks pass.
  • This pull request is ready to be reviewed.

Update all GitHub Actions in CI and PyPI release workflows to their latest releases pinned by full 40-character commit SHA, migrate Ubuntu runners to ubuntu-26.04, and apply least-privilege permissions and persist-credentials: false on checkout steps.

Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
@xSAVIKx xSAVIKx self-assigned this Nov 29, 2026
@xSAVIKx
xSAVIKx marked this pull request as ready for review November 29, 2026 17:53
Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
@xSAVIKx
xSAVIKx requested review from a team and duglin November 29, 2026 18:01
xSAVIKx added a commit that referenced this pull request Nov 29, 2026
Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
@xSAVIKx
xSAVIKx requested a review from PlugaruT December 2, 2026 06:53
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