@@ -103,14 +103,30 @@ jobs:
103103 name : testpypi
104104 url : https://test.pypi.org/p/python-cmethods
105105 steps :
106+ - name : Harden Runner
107+ uses : step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
108+ with :
109+ disable-sudo : true
110+ egress-policy : block
111+ allowed-endpoints : >
112+ api.github.com:443
113+ fulcio.sigstore.dev
114+ ghcr.io
115+ github.com:443
116+ pkg-containers.githubusercontent.com:443
117+ rekor.sigstore.dev
118+ test.pypi.org
119+ tuf-repo-cdn.sigstore.dev
120+ uploads.github.com:443
121+
106122 - name : Download all the distributions
107- uses : actions/download-artifact@v8
123+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
108124 with :
109125 name : python-package-distributions
110126 path : dist/
111127
112128 - name : Publish package distributions to Test PyPI
113- uses : pypa/gh-action-pypi-publish@release/v1
129+ uses : pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1
114130 with :
115131 repository-url : https://test.pypi.org/legacy/
116132
@@ -138,13 +154,30 @@ jobs:
138154 name : pypi
139155 url : https://pypi.org/p/python-cmethods
140156 steps :
157+ - name : Harden Runner
158+ uses : step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
159+ with :
160+ disable-sudo : true
161+ egress-policy : block
162+ allowed-endpoints : >
163+ api.github.com:443
164+ fulcio.sigstore.dev
165+ ghcr.io
166+ github.com:443
167+ pkg-containers.githubusercontent.com:443
168+ pypi.org
169+ rekor.sigstore.dev
170+ tuf-repo-cdn.sigstore.dev
171+ upload.pypi.org
172+ uploads.github.com:443
173+
141174 - name : Download all the distributions
142- uses : actions/download-artifact@v8
175+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
143176 with :
144177 name : python-package-distributions
145178 path : dist/
146179
147180 - name : Publish package distributions to PyPI
148- uses : pypa/gh-action-pypi-publish@release/v1
181+ uses : pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1
149182 with :
150183 repository-url : https://upload.pypi.org/legacy/
0 commit comments