Skip to content

Commit 317eb02

Browse files
derek73claude
andcommitted
Switch to Trusted Publishing and add Dependabot
Replaces PYPI_API_TOKEN secret with OIDC-based trusted publishing via PyPI's trusted publisher configuration. Also updates action versions (checkout v4, setup-python v5) and adds Dependabot for monthly GitHub Actions version updates. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent cc7d55c commit 317eb02

2 files changed

Lines changed: 12 additions & 15 deletions

File tree

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
# This workflow will upload a Python Package using Twine when a release is created
2-
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3-
4-
# This workflow uses actions that are not certified by GitHub.
5-
# They are provided by a third-party and are governed by
6-
# separate terms of service, privacy policy, and support
7-
# documentation.
8-
91
name: Upload Published Python Package
102

113
on:
@@ -14,13 +6,15 @@ on:
146

157
jobs:
168
deploy:
17-
189
runs-on: ubuntu-latest
10+
environment: pypi
11+
permissions:
12+
id-token: write
1913

2014
steps:
21-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
2216
- name: Set up Python
23-
uses: actions/setup-python@v2
17+
uses: actions/setup-python@v5
2418
with:
2519
python-version: '3.x'
2620
- name: Install dependencies
@@ -30,7 +24,4 @@ jobs:
3024
- name: Build package
3125
run: python -m build
3226
- name: Publish package
33-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
34-
with:
35-
user: __token__
36-
password: ${{ secrets.PYPI_API_TOKEN }}
27+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)