Skip to content

Commit e102626

Browse files
committed
Fix code scanning issues
1 parent 6a7f322 commit e102626

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/publish-to-pypi.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
22

33
on: push
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
build:
710
name: Build distribution 📦
@@ -47,7 +50,7 @@ jobs:
4750
name: python-package-distributions
4851
path: dist/
4952
- name: Publish distribution 📦 to PyPI
50-
uses: pypa/gh-action-pypi-publish@release/v1
53+
uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v1.12.3
5154

5255
github-release:
5356
name: >-
@@ -68,7 +71,7 @@ jobs:
6871
name: python-package-distributions
6972
path: dist/
7073
- name: Sign the dists with Sigstore
71-
uses: sigstore/gh-action-sigstore-python@v3.0.0
74+
uses: sigstore/gh-action-sigstore-python@f514d46b907ebcd5bedc05145c03b69c1edd8b46 #v3.0.0
7275
with:
7376
inputs: >-
7477
./dist/*.tar.gz
@@ -112,6 +115,6 @@ jobs:
112115
name: python-package-distributions
113116
path: dist/
114117
- name: Publish distribution 📦 to TestPyPI
115-
uses: pypa/gh-action-pypi-publish@release/v1
118+
uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v1.12.3
116119
with:
117120
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)