Skip to content

ci: pin PyPI publish action to commit SHA and add Dependabot for Actions - #2541

Open
jahid90 wants to merge 1 commit into
fsspec:masterfrom
jahid90:ci/pin-pypi-publish-action
Open

jahid90 wants to merge 1 commit into
fsspec:masterfrom
jahid90:ci/pin-pypi-publish-action

Conversation

@jahid90

@jahid90 jahid90 commented Nov 27, 2026

Copy link
Copy Markdown

Harden the PyPI publish step in .github/workflows/pypipublish.yaml by pinning pypa/gh-action-pypi-publish to a full commit SHA and configuring Dependabot to keep GitHub Actions pins updated.

Changes

  • Pin pypa/gh-action-pypi-publish in jobs.publish (.github/workflows/pypipublish.yaml:75) to commit 7245906fb61fa33a13554f9d5fb856fe61758086 (v1.14.3), the exact commit currently referenced by release/v1, so release behavior is unchanged while avoiding implicit branch-ref drift.
  • Add .github/dependabot.yml scoped only to github-actions, grouped into at most one monthly PR with a 7-day cooldown.

Verification

  • Verified 7245906fb61fa33a13554f9d5fb856fe61758086 is the v1.14.3 / release/v1 commit and has a published GHCR image tag built by pypa/gh-action-pypi-publish (build-and-push-docker-image.yml).
  • Validated .github/workflows/pypipublish.yaml and .github/dependabot.yml with actionlint and zizmor.
  • Ran a fork tag smoke test (2026.99.0) on https://github.com/jahid90/filesystem_spec/actions/runs/45945294311: ci, build, and release passed, and publish pulled the pinned action container, initialized defaults, minted an OIDC token, and stopped as expected at PyPI's mint-token check (invalid-publisher for the fork).

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