Skip to content

ci(1.x): pin actions to commit SHAs and drop default write access - #38

Merged
ddiazpinto merged 1 commit into
release/1.xfrom
ci/pin-actions-1x
Nov 7, 2026
Merged

ddiazpinto merged 1 commit into
release/1.xfrom
ci/pin-actions-1x

Conversation

@ddiazpinto

Copy link
Copy Markdown
Owner

Summary

Backport of the 2.x hardening (#36) to the 1.x line:

  • Every uses: pinned to a full commit SHA with the version as a comment (snok/install-poetry at v1.4.2; pypa/gh-action-pypi-publish was on the moving release/v1 branch).
  • python-app.yml declares permissions: contents: read; release.yml already did.
  • persist-credentials: false on every checkout.

Required before the repository enforces SHA pinning (sha_pinning_required), which would otherwise reject the 1.x CI and the 1.x release workflow.

Test plan

  • YAML parses; zizmor (online audits) reports no findings.
  • build passes on this PR.

Same hardening as 2.x: pinned actions, read-only contents permission,
and checkouts that do not persist the token. Required before the
repository enforces SHA pinning, which would otherwise reject the 1.x
workflows.
@ddiazpinto
ddiazpinto merged commit 9abaa24 into release/1.x Nov 7, 2026
1 check passed
@ddiazpinto
ddiazpinto deleted the ci/pin-actions-1x branch November 7, 2026 16:43
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