Skip to content

pin release actions to verified commit SHAs - #9

Merged
incr3d1ble merged 1 commit into
pennacle-security:mainfrom
laozhej:ci/6-pin-release-actions
Oct 27, 2026
Merged

incr3d1ble merged 1 commit into
pennacle-security:mainfrom
laozhej:ci/6-pin-release-actions

Conversation

@laozhej

@laozhej laozhej commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Fixes #6.

Summary

Pin all eight third-party action references in release.yml to full commit SHAs. Each SHA was resolved from the upstream ref and checked against the exact version tag:

  • actions/checkout: v7.0.1, 3d3c42e5aac5ba805825da76410c181273ba90b1
  • actions/setup-python: v7.1.0, 6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
  • actions/upload-artifact: v4.6.2, ea165f8d65b6e75b540449e92b4886f43607fa02
  • actions/download-artifact: v4.3.0, d3f86a106a0bac45b974a628896c90dbdf5c8093
  • pypa/gh-action-pypi-publish: v1.14.3, 7245906fb61fa33a13554f9d5fb856fe61758086
  • softprops/action-gh-release: v2.6.2, 3bb12739c298aeb8a4eeaf626c5b8d85266b0e65

The checkout/setup-python versions include the upgrades already merged in #1 and #2. The artifact download added on main is pinned too. Remove the corresponding TODO comments and retain version comments for review and updates.

Validation

  • actionlint v1.7.12 passes (-shellcheck=''; ShellCheck is unavailable locally).
  • A parsed-YAML comparison against current main confirms that only the eight uses values differ. Triggers, permissions, environments, jobs, scripts, inputs, dependencies and artifact paths are identical.
  • pytest -q -o addopts=: 106 passed.
  • ruff check . and git diff --check pass.
  • The publishing workflow was not dispatched: it requires the project's PyPI environment and creates real releases. End-to-end publishing remains for a maintainer to verify with the configured environment and tag, as requested in the issue.

Detection fixtures and package README/CHANGELOG updates are not applicable to this workflow-only change.

AI assistance: implemented and reviewed with OpenAI Codex.

@laozhej
laozhej requested a review from incr3d1ble as a code owner October 26, 2026 05:23

@incr3d1ble incr3d1ble left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed as maintainer. PR #9: all six SHAs verified against upstream tags via ls-remote before merge. PR #10: phrase precision checked against the good fixtures (no cross-fires), full fixture pair included, docs and changelog updated. Thank you for clean, complete work.

@incr3d1ble incr3d1ble mentioned this pull request Oct 27, 2026
6 tasks done
@incr3d1ble
incr3d1ble merged commit 41c3a43 into pennacle-security:main Oct 27, 2026
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.

Pin third-party actions to commit SHAs in release.yml

2 participants