Skip to content

Commit

Permalink
More Github Action dependency pinning
Browse files Browse the repository at this point in the history
  • Loading branch information
kjd committed Aug 22, 2024
1 parent a87e2b6 commit 1f613c5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

name: Publish to PyPI
on: push
permissions:
contents: read

jobs:

build:
Expand Down Expand Up @@ -44,7 +47,7 @@ jobs:
name: python-package-distributions
path: dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # release/v1

github-release:
name: Sign and upload GitHub Release
Expand All @@ -63,7 +66,7 @@ jobs:
name: python-package-distributions
path: dist/
- name: Sign with Sigstore
uses: sigstore/gh-action-sigstore-python@v2.1.1
uses: sigstore/gh-action-sigstore-python@1f6a500bbfdd9a2a339cf033e5421951fbc1cd2 # v2.1.1
with:
inputs: >-
./dist/*.tar.gz
Expand Down Expand Up @@ -107,8 +110,8 @@ jobs:
# name: python-package-distributions
# path: dist/
# - name: Publish distribution to TestPyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # release/v1
# with:
# verbose: true
# print-hash: true
# repository-url: https://test.pypi.org/legacy/
# repository-url: https://test.pypi.org/legacy/

0 comments on commit 1f613c5

Please sign in to comment.