Skip to content

Commit 6910a18

Browse files
authored
fix: Update PyPI publish workflow to use Trusted Publishing (#666)
* fix: update PyPI publish workflow to use Trusted Publishing - Replace deprecated repository_url with repository-url - Remove password authentication for both PyPI and TestPyPI - Enable attestations for supply chain security - Use OIDC authentication via Trusted Publishing * fix: add id-token write permission for OIDC authentication * fix: disable attestations for PyPI to avoid conflict with TestPyPI attestations * fix: explicitly disable attestations for PyPI publish * docs(changelog): add PyPI Trusted Publishing workflow update * docs(changelog): add PyPI Trusted Publishing update to unreleased section
1 parent 596f3fa commit 6910a18

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
build-n-publish:
1515
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
1616
runs-on: ubuntu-latest
17+
permissions:
18+
id-token: write
1719

1820
steps:
1921
- uses: actions/checkout@v3
@@ -36,10 +38,10 @@ jobs:
3638
- name: Publish distribution 📦 to Test PyPI
3739
uses: pypa/gh-action-pypi-publish@release/v1
3840
with:
39-
password: ${{ secrets.PYPI_TEST }}
40-
repository_url: https://test.pypi.org/legacy/
41+
repository-url: https://test.pypi.org/legacy/
42+
attestations: true
4143

4244
- name: Publish distribution 📦 to PyPI
4345
uses: pypa/gh-action-pypi-publish@release/v1
4446
with:
45-
password: ${{ secrets.PYGGRAPHISTRY_PYPI }}
47+
attestations: false

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
77

88
## [0.38.0 - 2025-06-17]
99

10+
### Changed
11+
* PyPI publish workflow now uses Trusted Publishing (OIDC) instead of password authentication
12+
13+
## [0.38.0 - 2025-06-17]
14+
1015
### Feat
1116
* Kusto/Azure Data Explorer integration. `PyGraphistry.kusto()`, `kusto_query()`, `kusto_query_graph()`
1217
* Extra kusto install target `pip install graphistry[kusto]` installs azure-kusto-data, azure-identity

0 commit comments

Comments
 (0)