Skip to content

Commit 1f613c5

Browse files
committed
More Github Action dependency pinning
1 parent a87e2b6 commit 1f613c5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
name: Publish to PyPI
44
on: push
5+
permissions:
6+
contents: read
7+
58
jobs:
69

710
build:
@@ -44,7 +47,7 @@ jobs:
4447
name: python-package-distributions
4548
path: dist/
4649
- name: Publish distribution to PyPI
47-
uses: pypa/gh-action-pypi-publish@release/v1
50+
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # release/v1
4851

4952
github-release:
5053
name: Sign and upload GitHub Release
@@ -63,7 +66,7 @@ jobs:
6366
name: python-package-distributions
6467
path: dist/
6568
- name: Sign with Sigstore
66-
uses: sigstore/[email protected]
69+
uses: sigstore/gh-action-sigstore-python@1f6a500bbfdd9a2a339cf033e5421951fbc1cd2 # v2.1.1
6770
with:
6871
inputs: >-
6972
./dist/*.tar.gz
@@ -107,8 +110,8 @@ jobs:
107110
# name: python-package-distributions
108111
# path: dist/
109112
# - name: Publish distribution to TestPyPI
110-
# uses: pypa/gh-action-pypi-publish@release/v1
113+
# uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # release/v1
111114
# with:
112115
# verbose: true
113116
# print-hash: true
114-
# repository-url: https://test.pypi.org/legacy/
117+
# repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)