Skip to content

Commit 15c0325

Browse files
committed
Move back to tokens
- Reusable workflows can't use trusted publishing yet: pypa/gh-action-pypi-publish#166
1 parent 3270e7f commit 15c0325

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

.github/workflows/package-ci.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@ on:
4141
default: 'main'
4242
type: string
4343
secrets:
44-
SSH_USER:
45-
description: User to SFTP as
46-
SSH_KEY:
47-
description: Private key
48-
SSH_PASSPHRASE:
49-
description: Decryption passphrase for private key
5044
META_REPO_ACCESS_TOKEN:
5145
description: Token to use to trigger bump workflow on robotpy-meta
5246
RTD_TOKEN:
@@ -57,6 +51,8 @@ on:
5751
description: Username to upload to artifactory
5852
WPI_ARTIFACTORY_TOKEN:
5953
description: Token to use to upload to artifactory
54+
PYPI_API_TOKEN:
55+
description: Token to publish the package to PyPI
6056

6157
concurrency:
6258
group: ${{ github.ref }}
@@ -282,8 +278,6 @@ jobs:
282278
publish-pypi:
283279
runs-on: ubuntu-latest
284280
needs: [check, build, cross-build]
285-
permissions:
286-
id-token: write
287281
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
288282

289283
steps:
@@ -335,7 +329,9 @@ jobs:
335329
- name: Publish to PyPI
336330
uses: pypa/gh-action-pypi-publish@release/v1
337331
with:
338-
verify-metadata: false
332+
user: __token__
333+
password: ${{ secrets.PYPI_API_TOKEN }}
334+
verify_metadata: false
339335

340336
ping-rtd:
341337
runs-on: ubuntu-latest

.github/workflows/package-hal-extension.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
secrets:
77
META_REPO_ACCESS_TOKEN:
88
description: Token to use to trigger bump workflow on robotpy-meta
9+
PYPI_API_TOKEN:
10+
description: Token to publish the package to PyPI
911

1012

1113
jobs:
@@ -86,7 +88,9 @@ jobs:
8688
- name: Publish to PyPI
8789
uses: pypa/gh-action-pypi-publish@release/v1
8890
with:
89-
verify-metadata: false
91+
user: __token__
92+
password: ${{ secrets.PYPI_API_TOKEN }}
93+
verify_metadata: false
9094

9195
# - uses: robotpy/build-actions/ping-meta@v2024
9296
# with:

.github/workflows/package-pure.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
secrets:
1313
META_REPO_ACCESS_TOKEN:
1414
description: Token to use to trigger bump workflow on robotpy-meta
15+
PYPI_API_TOKEN:
16+
description: Token to publish the package to PyPI
1517

1618

1719
jobs:
@@ -95,7 +97,9 @@ jobs:
9597
- name: Publish to PyPI
9698
uses: pypa/gh-action-pypi-publish@release/v1
9799
with:
98-
verify-metadata: false
100+
user: __token__
101+
password: ${{ secrets.PYPI_API_TOKEN }}
102+
verify_metadata: false
99103

100104
# - uses: robotpy/build-actions/ping-meta@v2024
101105
# with:

0 commit comments

Comments
 (0)