Skip to content

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

Merged
xSAVIKx merged 3 commits into
mainfrom
chore/update-ci-actions-ubuntu-26.04
Dec 5, 2026
Merged

xSAVIKx merged 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
@xSAVIKx

xSAVIKx commented Dec 5, 2026

Copy link
Copy Markdown
Member Author

@PlugaruT @Klaudioz can someone review this please?

@duglin

duglin commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

LGTM

@xSAVIKx
xSAVIKx merged commit b2a7772 into main Dec 5, 2026
35 checks passed
@xSAVIKx
xSAVIKx deleted the chore/update-ci-actions-ubuntu-26.04 branch December 5, 2026 19:17
duglin pushed a commit that referenced this pull request Dec 6, 2026
…331)

* docs(changelog): fix missing tag/PR links and add Unreleased entries

Add newly merged PRs since 2.2.0 under Unreleased, add missing release tag compare links and release dates, fix broken 1.7.1/1.12.1 compare refs, add missing #138/#294/#297 PR links, and align alpha tag headings with git tags.

Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>

* docs(changelog): add PR #329 and #330 under Unreleased

Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>

---------

Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
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