Skip to content

Commit e445ca2

Browse files
committed
ci: PyPI attestations (#5374)
1 parent 7b67d8e commit e445ca2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/pip.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,12 @@ jobs:
9191
runs-on: ubuntu-latest
9292
if: github.event_name == 'release' && github.event.action == 'published'
9393
needs: [packaging]
94-
environment: pypi
94+
environment:
95+
name: pypi
96+
url: https://pypi.org/p/pybind11
9597
permissions:
9698
id-token: write
9799
attestations: write
98-
contents: read
99100

100101
steps:
101102
# Downloads all to directories matching the artifact names
@@ -110,8 +111,10 @@ jobs:
110111
uses: pypa/gh-action-pypi-publish@release/v1
111112
with:
112113
packages-dir: standard/
114+
attestations: true
113115

114116
- name: Publish global package
115117
uses: pypa/gh-action-pypi-publish@release/v1
116118
with:
117119
packages-dir: global/
120+
attestations: true

0 commit comments

Comments
 (0)