ci: harden and improve GitHub Actions workflows#67
Merged
PabloPardoGarcia merged 2 commits intomainfrom Mar 26, 2026
Merged
Conversation
Security:
- Pin all third-party actions to immutable commit SHAs
- Add permissions: {} at workflow level with explicit per-job grants
- Migrate PyPI publishing to OIDC trusted publishing (remove PYPI_API_TOKEN)
Correctness:
- Fix version-bump to read base version from main, preventing double-bumps
when labels change mid-PR
- Fix label evaluation to check all PR labels (not just triggering event)
and pick highest impact (major > minor > patch)
- Reverse tag/publish order in release: tag first, then publish to PyPI
- Add VERSION format validation before arithmetic in version-bump
- Add twine check before PyPI upload
Reliability:
- Add concurrency groups to all workflows (cancel-in-progress where safe)
- Move coverage badge commit to dedicated post-matrix job to eliminate
race condition with parallel matrix runners
- Eliminate duplicate pytest run on Python 3.13 (single pass with all reports)
- Fix shell injection vectors: pass GitHub context via env: not inline
New:
- Add smoke.yml: fast test run on every push to main to catch
merge-induced regressions before the next release
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
Test Coverage Report
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ashish-bagri
approved these changes
Mar 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Security:
Correctness:
Reliability:
New: