Skip to content

Commit 296178f

Browse files
committed
Pin official GitHub workflow actions
1 parent 5f98958 commit 296178f

10 files changed

Lines changed: 30 additions & 30 deletions

.github/workflows/_build-packages.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
matrix:
2626
pkg-name: ${{ fromJSON(inputs.pkg-names) }}
2727
steps:
28-
- uses: actions/checkout@v6
29-
- uses: actions/setup-python@v6
28+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
29+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3030
with:
3131
python-version: "3.x"
3232

@@ -41,7 +41,7 @@ jobs:
4141
mkdir -p pypi/${{ matrix.pkg-name }}
4242
cp dist/* pypi/${{ matrix.pkg-name }}/
4343
44-
- uses: actions/upload-artifact@v7
44+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
4545
with:
4646
name: ${{ inputs.artifact-name }}-${{ matrix.pkg-name }}
4747
path: pypi
@@ -51,7 +51,7 @@ jobs:
5151
needs: build-packages
5252
runs-on: ubuntu-22.04
5353
steps:
54-
- uses: actions/download-artifact@v8
54+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
5555
with: # download all build artifacts
5656
pattern: ${{ inputs.artifact-name }}-*
5757
merge-multiple: true
@@ -62,7 +62,7 @@ jobs:
6262
6363
- name: Keep artifact
6464
run: python -c "print('DAYS=' + str(5 if '${{ github.event_name }}'.startswith('pull_request') else 0))" >> $GITHUB_ENV
65-
- uses: actions/upload-artifact@v7
65+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
6666
with:
6767
name: ${{ inputs.artifact-name }}
6868
path: pypi

.github/workflows/_legacy-checkpoints.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
outputs:
5858
pl-version: ${{ steps.decide-version.outputs.pl-version }}
5959
steps:
60-
- uses: actions/checkout@v6
60+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6161

6262
- name: Install uv and set Python version
6363
uses: astral-sh/setup-uv@v7
@@ -113,7 +113,7 @@ jobs:
113113
python -c "print('AWS_RUN=' + str('' if '${{inputs.push_to_s3}}' == 'true' else '--dryrun'))" >> $GITHUB_ENV
114114
115115
- name: Upload checkpoints to GitHub Actions artifact
116-
uses: actions/upload-artifact@v7
116+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
117117
with:
118118
name: checkpoints-${{ github.sha }}
119119
path: ${{ env.LEGACY_FOLDER }}/checkpoints/
@@ -144,7 +144,7 @@ jobs:
144144
env:
145145
PL_VERSION: ${{ needs.create-legacy-ckpts.outputs.pl-version }}
146146
steps:
147-
- uses: actions/checkout@v6
147+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
148148
with:
149149
ref: master
150150

.github/workflows/ci-pkg-install.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ jobs:
4949
# Supply-chain guard: skip PyPI releases newer than this (ISO 8601 duration). See https://pip.pypa.io/en/stable/cli/pip_install/#cmdoption-uploaded-prior-to
5050
PIP_UPLOADED_PRIOR_TO: "P2D"
5151
steps:
52-
- uses: actions/checkout@v6
53-
- uses: actions/setup-python@v6
52+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
53+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
5454
with:
5555
python-version: ${{ matrix.python-version }}
5656
- name: Upgrade pip (for --uploaded-prior-to, pip >= 26.1)
5757
run: python -m pip install --upgrade "pip>=26.1"
58-
- uses: actions/download-artifact@v8
58+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
5959
with:
6060
name: dist-packages-${{ github.sha }}
6161
path: dist

.github/workflows/ci-tests-fabric.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
# Supply-chain guard: skip PyPI releases newer than this. See https://docs.astral.sh/uv/reference/settings/#exclude-newer
7272
UV_EXCLUDE_NEWER: "2 days"
7373
steps:
74-
- uses: actions/checkout@v6
74+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7575

7676
- name: Install uv and set Python version
7777
uses: astral-sh/setup-uv@v7

.github/workflows/ci-tests-pytorch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
# Supply-chain guard: skip PyPI releases newer than this. See https://docs.astral.sh/uv/reference/settings/#exclude-newer
7777
UV_EXCLUDE_NEWER: "2 days"
7878
steps:
79-
- uses: actions/checkout@v6
79+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8080

8181
- name: Install uv and set Python version
8282
uses: astral-sh/setup-uv@v7
@@ -151,7 +151,7 @@ jobs:
151151
run: uv pip uninstall pytorch-lightning
152152

153153
- name: Cache datasets
154-
uses: actions/cache@v5
154+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
155155
with:
156156
path: Datasets
157157
key: pl-dataset

.github/workflows/code-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
# Supply-chain guard: skip PyPI releases newer than this. See https://docs.astral.sh/uv/reference/settings/#exclude-newer
3232
UV_EXCLUDE_NEWER: "2 days"
3333
steps:
34-
- uses: actions/checkout@v6
34+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3535

3636
- name: Install uv and set Python version
3737
uses: astral-sh/setup-uv@v7
@@ -51,7 +51,7 @@ jobs:
5151
uv pip list
5252
5353
- name: mypy cache
54-
uses: actions/cache@v5
54+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
5555
with:
5656
path: .mypy_cache
5757
key: mypy-${{ hashFiles('requirements/typing.txt') }}

.github/workflows/docs-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
PIN_RELEASE_VERSIONS: 1
6666
ARTIFACT_DAYS: 0
6767
steps:
68-
- uses: actions/checkout@v6
68+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6969
with:
7070
ref: ${{ inputs.checkout }}
7171
token: ${{ secrets.GITHUB_TOKEN }}
@@ -141,7 +141,7 @@ jobs:
141141

142142
- name: Upload built docs
143143
if: ${{ matrix.target == 'html' }}
144-
uses: actions/upload-artifact@v7
144+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
145145
with:
146146
name: docs-${{ matrix.pkg-name }}-${{ github.sha }}
147147
path: docs/build/html/
@@ -161,7 +161,7 @@ jobs:
161161
# use input if dispatch or git tag
162162
VERSION: ${{ inputs.version || github.ref_name }}
163163
steps:
164-
- uses: actions/download-artifact@v8
164+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
165165
with:
166166
name: docs-${{ matrix.pkg-name }}-${{ github.sha }}
167167
path: docs/build/html/

.github/workflows/docs-tutorials.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
docs-update:
1919
runs-on: ubuntu-22.04
2020
steps:
21-
- uses: actions/checkout@v6
21+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2222
with:
2323
submodules: true
2424
fetch-depth: 0

.github/workflows/release-nightly.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
# Supply-chain guard: skip PyPI releases newer than this (ISO 8601 duration). See https://pip.pypa.io/en/stable/cli/pip_install/#cmdoption-uploaded-prior-to
2525
PIP_UPLOADED_PRIOR_TO: "P2D"
2626
steps:
27-
- uses: actions/checkout@v6
28-
- uses: actions/setup-python@v6
27+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
28+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2929
with:
3030
python-version: "3.10"
3131

@@ -43,7 +43,7 @@ jobs:
4343
nb-dirs: ${{ env.NB_DIRS }}
4444
allow-local-changes: "true"
4545

46-
- uses: actions/upload-artifact@v7
46+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
4747
with:
4848
name: nightly-packages-${{ github.sha }}
4949
path: dist

.github/workflows/release-pkg.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
needs: build-packages
3737
if: github.event_name == 'release'
3838
steps:
39-
- uses: actions/checkout@v6
40-
- uses: actions/download-artifact@v8
39+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
40+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
4141
with:
4242
name: dist-packages-${{ github.sha }}
4343
path: dist
@@ -53,8 +53,8 @@ jobs:
5353
outputs:
5454
tag: ${{ steps.lai-package.outputs.version }}
5555
steps:
56-
- uses: actions/checkout@v6
57-
- uses: actions/setup-python@v6
56+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
57+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
5858
with:
5959
python-version: ${{ env.PYTHON_VER }}
6060
- name: install Package
@@ -73,7 +73,7 @@ jobs:
7373
TAG: ${{ needs.release-version.outputs.tag }}
7474
BRANCH_NAME: "trigger/lightning-${{ needs.release-version.outputs.tag }}"
7575
steps:
76-
- uses: actions/checkout@v6
76+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7777
with:
7878
repository: gridai/base-images
7979
token: ${{ secrets.PAT_GHOST }}
@@ -140,8 +140,8 @@ jobs:
140140
matrix:
141141
name: ["FABRIC", "PYTORCH", "LIGHTNING"]
142142
steps:
143-
- uses: actions/checkout@v6 # needed for local action below
144-
- uses: actions/download-artifact@v8
143+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2; needed for local action below
144+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
145145
with:
146146
name: dist-packages-${{ github.sha }}
147147
path: dist

0 commit comments

Comments
 (0)