Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .github/workflows/publish-python-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,16 @@ jobs:
(github.event_name == 'push' && startsWith(github.ref_name, 'python-sdk-v'))
|| (github.event_name == 'workflow_dispatch' && (github.event.inputs.package == 'honua-sdk' || github.event.inputs.package == 'both'))
runs-on: ubuntu-latest
environment: pypi-honua-sdk
# PyPI Trusted Publishing requires `id-token: write` so the action can mint
# an OIDC token and exchange it for a short-lived upload credential. The
# Trusted Publisher MUST be configured at:
# https://pypi.org/manage/project/honua-sdk/settings/publishing/
# with workflow `publish-python-sdk.yml` (and the matching environment, if
# any) bound to this repository. See: https://docs.pypi.org/trusted-publishers/
# with workflow `publish-python-sdk.yml` and environment `pypi-honua-sdk`
# bound to this repository. The per-package environment names keep the two
# publishers' OIDC configurations distinct — PyPI rejects two pending
# publishers with an identical repo/workflow/environment tuple.
# See: https://docs.pypi.org/trusted-publishers/
permissions:
contents: read
id-token: write
Expand Down Expand Up @@ -166,12 +170,16 @@ jobs:
(github.event_name == 'push' && startsWith(github.ref_name, 'python-admin-v'))
|| (github.event_name == 'workflow_dispatch' && (github.event.inputs.package == 'honua-admin' || github.event.inputs.package == 'both'))
runs-on: ubuntu-latest
environment: pypi-honua-admin
# PyPI Trusted Publishing requires `id-token: write` so the action can mint
# an OIDC token and exchange it for a short-lived upload credential. The
# Trusted Publisher MUST be configured at:
# https://pypi.org/manage/project/honua-admin/settings/publishing/
# with workflow `publish-python-sdk.yml` (and the matching environment, if
# any) bound to this repository. See: https://docs.pypi.org/trusted-publishers/
# with workflow `publish-python-sdk.yml` and environment `pypi-honua-admin`
# bound to this repository. The per-package environment names keep the two
# publishers' OIDC configurations distinct — PyPI rejects two pending
# publishers with an identical repo/workflow/environment tuple.
# See: https://docs.pypi.org/trusted-publishers/
permissions:
contents: read
id-token: write
Expand Down
Loading