summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Woodruff <william@yossarian.net>2023-05-14 17:57:04 -0400
committerGitHub <noreply@github.com>2023-05-14 16:57:04 -0500
commit18e92145e9cddbabdf51c98f54202aa37fd5d4c8 (patch)
treeb12693c0ce3a231e0e6c5198621e6b0cf298a81e
parentd25cf83bbae850a290fe34ed1610ae55c0558b36 (diff)
downloadurllib3-1.26.x.tar.gz
Use trusted publishing for PyPI1.26.x
-rw-r--r--.github/workflows/publish.yml6
1 files changed, 2 insertions, 4 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 25fb2c3d..0e286aa3 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -67,6 +67,7 @@ jobs:
needs: ["build", "provenance"]
permissions:
contents: write
+ id-token: write # Needed for trusted publishing to PyPI.
runs-on: "ubuntu-latest"
steps:
@@ -83,7 +84,4 @@ jobs:
gh release upload ${{ github.ref_name }} dist/* --repo ${{ github.repository }}
- name: "Publish dists to PyPI"
- uses: "pypa/gh-action-pypi-publish@37f50c210e3d2f9450da2cd423303d6a14a6e29f"
- with:
- user: __token__
- password: ${{ secrets.PYPI_TOKEN }}
+ uses: "pypa/gh-action-pypi-publish@a56da0b891b3dc519c7ee3284aff1fad93cc8598"