Skip to content

Commit d685905

Browse files
authored
Pin GitHub Actions by SHA (#2578)
1 parent a9d6885 commit d685905

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
attestations: write
2020
id-token: write
2121
steps:
22-
- uses: actions/checkout@v6
22+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2323
with:
2424
fetch-depth: 0
2525
persist-credentials: false
26-
- uses: hynek/build-and-inspect-python-package@v2
26+
- uses: hynek/build-and-inspect-python-package@fe0a0fb1925ca263d076ca4f2c13e93a6e92a33e # v2.17.0
2727
with:
2828
# Prove that the packages were built in the context of this workflow.
2929
attest-build-provenance-github: true
@@ -41,12 +41,12 @@ jobs:
4141
id-token: write
4242
steps:
4343
- name: Download Distribution Artifacts
44-
uses: actions/download-artifact@v8
44+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
4545
with:
4646
# The build-and-inspect-python-package action invokes upload-artifact.
4747
# These are the correct arguments from that action.
4848
name: Packages
4949
path: dist
5050
- name: Publish to PyPI
51-
uses: pypa/gh-action-pypi-publish@release/v1
51+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
5252
# Implicitly attests that the packages were uploaded in the context of this workflow.

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
python-version: ["3.12", "3.13", "3.14"]
1818
fail-fast: false
1919
steps:
20-
- uses: actions/checkout@v6
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2121
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v6
22+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525
- name: Install dependencies

0 commit comments

Comments
 (0)