Skip to content

Commit 5b649c1

Browse files
authored
Secure publish pipeline (#101)
1 parent 4fe7c03 commit 5b649c1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
jobs:
88
publish:
99
runs-on: ubuntu-20.04
10+
environment:
11+
name: pypi
12+
url: https://pypi.org/p/cert-host-scraper
13+
permissions:
14+
id-token: write
1015
steps:
1116
- uses: actions/checkout@master
1217
- uses: actions/setup-python@v5
@@ -24,6 +29,3 @@ jobs:
2429
poetry build
2530
- name: Publish to PyPI
2631
uses: pypa/[email protected]
27-
with:
28-
user: __token__
29-
password: ${{ secrets.pypi_token }}

0 commit comments

Comments
 (0)