Configure PyPI trusted publishing for CI releases
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
調査の方向性
まず .github/workflows/ci.yml の publish ジョブと、PyPI Trusted Publishers のドキュメントを確認します。PyPI にリポジトリ hardbyte/python-meridian-energy と ci.yml ワークフローを登録し、その後、API トークンの secrets なしでジョブが正常に公開できることを検証するため、パッチリリースまたはドキュメントのみのリリースを行います。
索引モデルが issue の本文から書いたものです。
説明
Context
meridian-energy 0.1.4 was published manually via twine + ~/.pypirc.
CI already has a release publish job (.github/workflows/ci.yml) using pypa/gh-action-pypi-publish with id-token: write, but PyPI trusted publishing is not wired up yet — so the job will fail until a publisher is registered.
Goal
Publishing a GitHub Release (vX.Y.Z) should upload to PyPI with no long-lived API token in GitHub secrets or local .pypirc.
Steps
- On PyPI → meridian-energy → Publishing:
- Add a new pending publisher (Trusted Publisher → GitHub)
- Owner:
hardbyte - Repository:
python-meridian-energy - Workflow:
ci.yml(must match the filename under.github/workflows/) - Environment: leave empty unless we add a GitHub Environment
- Confirm the workflow
publishjob:permissions: id-token: write- runs only on
release: types: [published] - uses
pypa/gh-action-pypi-publish
- Optional hardening (match
python-evnexif desired):- GitHub Environment
pypiwith required reviewers attestations: write+ artifact attestationuvx twine check --strict dist/*before upload
- GitHub Environment
- Smoke test: cut a patch release (e.g. empty bump or docs-only
0.1.5) and confirm the publish job goes green without secrets.
Acceptance
- Trusted publisher configured on PyPI for this repo/workflow
- Next GitHub Release publishes to PyPI automatically
- No PyPI API token stored in GitHub Actions secrets for this repo
Refs
- https://docs.pypi.org/trusted-publishers/
- https://github.com/pypa/gh-action-pypi-publish
- Existing workflow:
.github/workflows/ci.yml(publishjob)
- 主要言語
- Python
- スター
- 1
- フォーク
- 1
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
似ている issue
-
essreduce
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
メンテナーはふだん 1 日以内に返信
-
[PORT] A2A: map audio file parts to audio content and ignore MIME parameters (TS→Py)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンarea-a2a bug port python
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
strands-agents/harness-sdk#6697 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
TigreGotico/orthography2ipa#2950 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
TigreGotico/text2spoken#929 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100