Skip to content

Commit 3d47be9

Browse files
committed
Pin GitHub Actions to commit SHAs for supply chain security
1 parent 047039c commit 3d47be9

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/cibuildwheel.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1717
- name: Configure Python version
18-
uses: actions/setup-python@v4
18+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
1919
with:
2020
python-version: "3.11"
2121
architecture: x64
2222
- name: Build wheels
2323
run: |
2424
python -m pip install wheel
2525
python -m pip wheel . -w ./wheelhouse
26-
- uses: actions/upload-artifact@v4
26+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
2727
with:
2828
name: cibw-wheel-pure
2929
path: wheelhouse/spacy_curated_transformers-*.whl
@@ -32,11 +32,11 @@ jobs:
3232
name: Build source distribution
3333
runs-on: ubuntu-latest
3434
steps:
35-
- uses: actions/checkout@v4
35+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3636

3737
- name: Build sdist
3838
run: pipx run build --sdist
39-
- uses: actions/upload-artifact@v4
39+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
4040
with:
4141
name: cibw-sdist
4242
path: dist/*.tar.gz
@@ -70,15 +70,15 @@ jobs:
7070
echo "FULL_TAG=$TAG_NAME" >> $GITHUB_ENV
7171
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
7272
echo "IS_PRERELEASE=$IS_PRERELEASE" >> $GITHUB_ENV
73-
- uses: actions/download-artifact@v4
73+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
7474
with:
7575
# unpacks all CIBW artifacts into dist/
7676
pattern: cibw-*
7777
path: dist
7878
merge-multiple: true
7979
- name: Create Draft Release
8080
id: create_release
81-
uses: softprops/action-gh-release@v2
81+
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
8282
if: startsWith(github.ref, 'refs/tags/')
8383
env:
8484
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish_pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
# or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this)
2222
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
2323
steps:
24-
- uses: robinraju/release-downloader@v1
24+
- uses: robinraju/release-downloader@daf26c55d821e836577a15f77d86ddc078948b05 # v1
2525
with:
2626
tag: ${{ github.event.release.tag_name }}
2727
fileName: '*'
2828
out-file-path: 'dist'
29-
- uses: pypa/gh-action-pypi-publish@release/v1
29+
- uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Check out repo
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
1616

1717
- name: Configure Python version
18-
uses: actions/setup-python@v4
18+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
1919
with:
2020
python-version: "3.8"
2121
architecture: x64
@@ -48,11 +48,11 @@ jobs:
4848
# - os: windows-latest
4949
# hf-path: $HOME\\.cache\\huggingface\\hub
5050
steps:
51-
- uses: actions/checkout@v1
51+
- uses: actions/checkout@0b496e91ec7ae4428c3ed2eeb4c3a40df431f2cc # v1
5252
with:
5353
submodules: true
5454

55-
- uses: actions/setup-python@v4
55+
- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
5656
with:
5757
python-version: ${{ matrix.python-version }}
5858
# Disabled as this seems to randomly break builds on Windows.
@@ -105,7 +105,7 @@ jobs:
105105
# Disabled for Windows as the models appear to
106106
# be stored at a non-standard location.
107107
- name: Cache HF pre-trained models
108-
uses: actions/cache@v3
108+
uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3
109109
if: startsWith(runner.os, 'Windows') == false
110110
with:
111111
path: ${{ matrix.hf-path }}

0 commit comments

Comments
 (0)