Skip to content

Commit c28983c

Browse files
Pin GitHub Actions to immutable commit SHAs
Tags already matched the latest releases; pinning the commit hashes stops a retagged action from changing under us while Dependabot can still bump the SHA and version comment. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 05544df commit c28983c

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎.github/workflows/build_publish.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ jobs:
1717
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-latest]
1818

1919
steps:
20-
- uses: actions/checkout@v7.0.1
20+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2121
with:
2222
submodules: recursive
2323
persist-credentials: false
2424

2525
- name: Build wheels
26-
uses: pypa/cibuildwheel@v4.2.1
26+
uses: pypa/cibuildwheel@e090b81e30c4d855ea63bf4b6e59204c09a101ae # v4.2.1
2727

28-
- uses: actions/upload-artifact@v7.0.1
28+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
2929
with:
3030
name: wheels-${{ matrix.os }}
3131
path: ./wheelhouse/*.whl
@@ -45,14 +45,14 @@ jobs:
4545

4646
steps:
4747
- name: Download Artifacts
48-
uses: actions/download-artifact@v8.0.1
48+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
4949
with:
5050
pattern: wheels-*
5151
path: dist
5252
merge-multiple: true
5353

5454
- name: Publish package distributions to PyPI
55-
uses: pypa/gh-action-pypi-publish@v1.14.2
55+
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
5656
with:
5757
# Many native wheels plus Sigstore attestations can exceed GitHub's
5858
# ~5 minute OIDC token lifetime.

‎.github/workflows/build_test.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-latest]
1616

1717
steps:
18-
- uses: actions/checkout@v7.0.1
18+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1919
with:
2020
submodules: recursive
2121
persist-credentials: false
2222

2323
- name: Build wheels
24-
uses: pypa/cibuildwheel@v4.2.1
24+
uses: pypa/cibuildwheel@e090b81e30c4d855ea63bf4b6e59204c09a101ae # v4.2.1

‎.github/workflows/test.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v7.0.1
13+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1414
with:
1515
submodules: recursive
1616
persist-credentials: false
1717

1818
- name: Set up Python
19-
uses: actions/setup-python@v7.0.0
19+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
2020
with:
2121
python-version: "3.x"
2222

0 commit comments

Comments
 (0)