Skip to content

Commit dd691da

Browse files
committed
use pypi trusted publisher auth
1 parent b67fe5f commit dd691da

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
outputs:
1010
hash: ${{ steps.hash.outputs.hash }}
1111
steps:
12-
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
13-
- uses: actions/setup-python@5ccb29d8773c3f3f653e1705f474dfaa8a06a912
12+
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
13+
- uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435
1414
with:
1515
python-version: '3.x'
1616
cache: 'pip'
@@ -33,7 +33,7 @@ jobs:
3333
id-token: write
3434
contents: write
3535
# Can't pin with hash due to how this workflow works.
36-
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.4.0
36+
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.7.0
3737
with:
3838
base64-subjects: ${{ needs.build.outputs.hash }}
3939
create-release:
@@ -58,15 +58,15 @@ jobs:
5858
# files in the draft release.
5959
environment: 'publish'
6060
runs-on: ubuntu-latest
61+
permissions:
62+
id-token: write
6163
steps:
6264
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
6365
# Try uploading to Test PyPI first, in case something fails.
64-
- uses: pypa/gh-action-pypi-publish@c7f29f7adef1a245bd91520e94867e5c6eedddcc
66+
- uses: pypa/gh-action-pypi-publish@29930c9cf57955dc1b98162d0d8bc3ec80d9e75c
6567
with:
66-
password: ${{ secrets.TEST_PYPI_TOKEN }}
67-
repository_url: https://test.pypi.org/legacy/
68-
packages_dir: artifact/
69-
- uses: pypa/gh-action-pypi-publish@c7f29f7adef1a245bd91520e94867e5c6eedddcc
68+
repository-url: https://test.pypi.org/legacy/
69+
packages-dir: artifact/
70+
- uses: pypa/gh-action-pypi-publish@29930c9cf57955dc1b98162d0d8bc3ec80d9e75c
7071
with:
71-
password: ${{ secrets.PYPI_TOKEN }}
72-
packages_dir: artifact/
72+
packages-dir: artifact/

0 commit comments

Comments
 (0)