Skip to content

Commit 4d43e02

Browse files
authored
Merge pull request #6 from getlago/fix/pypa-publish-commit-sha
ci: pin pypi-publish action to its commit sha, not the tag-object sha
2 parents bb9d795 + 202a014 commit 4d43e02

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,11 @@ jobs:
122122
name: dist
123123
path: dist/
124124
- name: Publish
125-
uses: pypa/gh-action-pypi-publish@ecb4c3dfd4790f14e30aaeac04855c7413ee9368 # v1.12.2
125+
# Pinned to the COMMIT sha (not the annotated-tag object sha). This is a
126+
# Docker action; GitHub pulls ghcr.io/pypa/gh-action-pypi-publish:<ref>,
127+
# and pypa publishes that image tagged by commit sha — the tag-object sha
128+
# has no image (manifest unknown).
129+
uses: pypa/gh-action-pypi-publish@15c56dba361d8335944d31a2ecd17d700fc7bcbc # v1.12.2
126130
# No `password:` — OIDC handles auth automatically.
127131

128132
# ----------------------------------------------------------------------

0 commit comments

Comments
 (0)