Skip to content

Commit f435299

Browse files
Pin GitHub actions by hash (#129)
2 parents 5d1db12 + 3a52c2f commit f435299

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

.github/workflows/build-with-clang.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
steps:
2727
- name: Cancel Previous Runs
28-
uses: styfle/cancel-workflow-action@0.12.1
28+
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
2929
with:
3030
access_token: ${{ github.token }}
3131

@@ -44,13 +44,13 @@ jobs:
4444
sudo apt-get install intel-oneapi-mkl-devel
4545
4646
- name: Setup Python
47-
uses: actions/setup-python@v6.0.0
47+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
4848
with:
4949
python-version: ${{ matrix.python }}
5050
architecture: x64
5151

5252
- name: Checkout repo
53-
uses: actions/checkout@v5.0.1
53+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
5454
with:
5555
fetch-depth: 0
5656

.github/workflows/build_pip.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ jobs:
2727
sudo apt-get install jq
2828
2929
- name: Checkout repo
30-
uses: actions/checkout@v5.0.1
30+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
3131
with:
3232
fetch-depth: 0
3333

34-
- uses: conda-incubator/setup-miniconda@v3.1.1
34+
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
3535
with:
3636
use-mamba: true
3737
miniforge-version: latest

.github/workflows/conda-package.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
2525
with:
2626
access_token: ${{ github.token }}
27-
- uses: actions/checkout@v5.0.1
27+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
2828
with:
2929
fetch-depth: 0
3030

@@ -33,7 +33,7 @@ jobs:
3333
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
3434
3535
- name: Cache conda packages
36-
uses: actions/cache@v4
36+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
3737
env:
3838
CACHE_NUMBER: 0 # Increase to reset cache
3939
with:
@@ -64,7 +64,7 @@ jobs:
6464
conda-recipe
6565
6666
- name: Upload artifact
67-
uses: actions/upload-artifact@v5.0.0
67+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
6868
with:
6969
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
7070
path: ${{ env.CONDA_BLD }}/${{ env.PACKAGE_NAME }}-*.conda
@@ -84,7 +84,7 @@ jobs:
8484

8585
steps:
8686
- name: Download artifact
87-
uses: actions/download-artifact@v6
87+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
8888
with:
8989
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
9090
- name: Add conda to system path
@@ -111,7 +111,7 @@ jobs:
111111
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
112112
113113
- name: Cache conda packages
114-
uses: actions/cache@v4
114+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
115115
env:
116116
CACHE_NUMBER: 0 # Increase to reset cache
117117
with:
@@ -154,11 +154,11 @@ jobs:
154154
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
155155
with:
156156
access_token: ${{ github.token }}
157-
- uses: actions/checkout@v5.0.1
157+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
158158
with:
159159
fetch-depth: 0
160160

161-
- uses: conda-incubator/setup-miniconda@v3
161+
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
162162
with:
163163
miniforge-variant: Miniforge3
164164
miniforge-version: latest
@@ -168,7 +168,7 @@ jobs:
168168
python-version: ${{ matrix.python }}
169169

170170
- name: Cache conda packages
171-
uses: actions/cache@v4
171+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
172172
env:
173173
CACHE_NUMBER: 3 # Increase to reset cache
174174
with:
@@ -196,7 +196,7 @@ jobs:
196196
conda build --no-test --python ${{ matrix.python }} -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels conda-recipe
197197
198198
- name: Upload artifact
199-
uses: actions/upload-artifact@v5.0.0
199+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
200200
with:
201201
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
202202
path: ${{ env.CONDA_BLD }}${{ env.PACKAGE_NAME }}-*.conda
@@ -219,11 +219,11 @@ jobs:
219219

220220
steps:
221221
- name: Download artifact
222-
uses: actions/download-artifact@v6
222+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
223223
with:
224224
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
225225

226-
- uses: conda-incubator/setup-miniconda@v3
226+
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
227227
with:
228228
miniforge-variant: Miniforge3
229229
miniforge-version: latest
@@ -286,7 +286,7 @@ jobs:
286286
run: Get-Content -Path .\lockfile
287287

288288
- name: Cache conda packages
289-
uses: actions/cache@v4
289+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
290290
env:
291291
CACHE_NUMBER: 0 # Increase to reset cache
292292
with:

0 commit comments

Comments
 (0)