Skip to content

Commit 9df7a04

Browse files
committed
use SHA instead of version tags
1 parent 77ea7a5 commit 9df7a04

File tree

4 files changed

+33
-33
lines changed

4 files changed

+33
-33
lines changed

.github/workflows/build-docs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
pull-requests: write
1717
steps:
1818
- name: Cancel Previous Runs
19-
uses: styfle/cancel-workflow-action@0.12.1
19+
uses: styfle/cancel-workflow-action@3155a141048f8f89c06b4cdae32e7853e97536bc # v0.13.0
2020
with:
2121
access_token: ${{ github.token }}
2222
- name: Add Intel repository
@@ -33,17 +33,17 @@ jobs:
3333
sudo apt-get install intel-oneapi-compiler-dpcpp-cpp intel-oneapi-mkl-devel
3434
- name: Setup Python
3535
if: ${{ !github.event.pull_request || github.event.action != 'closed' }}
36-
uses: actions/setup-python@v5
36+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3737
with:
38-
python-version: "3.12"
38+
python-version: "3.13"
3939
architecture: x64
4040
- name: Install sphinx dependencies
4141
if: ${{ !github.event.pull_request || github.event.action != 'closed' }}
4242
shell: bash -l {0}
4343
run: |
4444
pip install numpy cython setuptools">=77" scikit-build cmake sphinx sphinx_rtd_theme furo pydot graphviz sphinxcontrib-programoutput sphinxcontrib-googleanalytics sphinx_design
4545
- name: Checkout repo
46-
uses: actions/checkout@v4.1.1
46+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4747
with:
4848
fetch-depth: 0
4949
persist-credentials: false
@@ -61,7 +61,7 @@ jobs:
6161
git clean -dfx
6262
- name: Save built docs as an artifact
6363
if: ${{ github.event.pull_request && github.event.action != 'closed'}}
64-
uses: actions/upload-artifact@v4
64+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
6565
with:
6666
name: ${{ env.PACKAGE_NAME }} rendered documentation
6767
path: ~/rendered_docs

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

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

2424
steps:
2525
- name: Cancel Previous Runs
26-
uses: styfle/cancel-workflow-action@0.12.1
26+
uses: styfle/cancel-workflow-action@3155a141048f8f89c06b4cdae32e7853e97536bc # v0.13.0
2727
with:
2828
access_token: ${{ github.token }}
2929

@@ -42,13 +42,13 @@ jobs:
4242
sudo apt-get install intel-oneapi-mkl-devel
4343
4444
- name: Setup Python
45-
uses: actions/setup-python@v5
45+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
4646
with:
4747
python-version: ${{ matrix.python }}
4848
architecture: x64
4949

5050
- name: Checkout repo
51-
uses: actions/checkout@v4
51+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5252
with:
5353
fetch-depth: 0
5454

.github/workflows/conda-package-cf.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ jobs:
2929
- python: "3.13"
3030
numpy: "2.3"
3131
steps:
32-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3333
with:
3434
fetch-depth: 0
3535

3636
- name: Set pkgs_dirs
3737
run: |
3838
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
3939
- name: Cache conda packages
40-
uses: actions/cache@v4
40+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
4141
env:
4242
CACHE_NUMBER: 0 # Increase to reset cache
4343
with:
@@ -64,7 +64,7 @@ jobs:
6464
$CHANNELS \
6565
conda-recipe-cf
6666
- name: Upload artifact
67-
uses: actions/upload-artifact@v4
67+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
6868
with:
6969
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
7070
path: /usr/share/miniconda/conda-bld/linux-64/${{ env.PACKAGE_NAME }}-*.conda
@@ -86,17 +86,17 @@ jobs:
8686
env:
8787
conda-bld: C:\Miniconda\conda-bld\win-64\
8888
steps:
89-
- uses: actions/checkout@v4
89+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9090
with:
9191
fetch-depth: 0
92-
- uses: conda-incubator/setup-miniconda@v3
92+
- uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
9393
with:
9494
conda-remove-defaults: true
9595
auto-activate-base: true
9696
activate-environment: ""
9797

9898
- name: Cache conda packages
99-
uses: actions/cache@v4
99+
uses: actions/cache@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
100100
env:
101101
CACHE_NUMBER: 3 # Increase to reset cache
102102
with:
@@ -113,7 +113,7 @@ jobs:
113113
- name: Build conda package
114114
run: conda build --no-test --python ${{ matrix.python }} --numpy ${{ matrix.numpy }} -c conda-forge --override-channels conda-recipe-cf
115115
- name: Upload artifact
116-
uses: actions/upload-artifact@v4
116+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
117117
with:
118118
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
119119
path: ${{ env.conda-bld }}${{ env.PACKAGE_NAME }}-*.conda
@@ -139,7 +139,7 @@ jobs:
139139

140140
steps:
141141
- name: Download artifact
142-
uses: actions/download-artifact@v4
142+
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
143143
with:
144144
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
145145
- name: Add conda to system path
@@ -166,7 +166,7 @@ jobs:
166166
run: |
167167
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
168168
- name: Cache conda packages
169-
uses: actions/cache@v4
169+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
170170
env:
171171
CACHE_NUMBER: 0 # Increase to reset cache
172172
with:
@@ -212,10 +212,10 @@ jobs:
212212

213213
steps:
214214
- name: Download artifact
215-
uses: actions/download-artifact@v4
215+
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
216216
with:
217217
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
218-
- uses: conda-incubator/setup-miniconda@v3
218+
- uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
219219
with:
220220
conda-remove-defaults: true
221221
auto-activate-base: true
@@ -243,7 +243,7 @@ jobs:
243243
conda create -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% python=${{ matrix.python }} numpy=${{ matrix.numpy }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }} --only-deps --dry-run > lockfile
244244
more lockfile
245245
- name: Cache conda packages
246-
uses: actions/cache@v4
246+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
247247
env:
248248
CACHE_NUMBER: 3 # Increase to reset cache
249249
with:

.github/workflows/conda-package.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424

2525
steps:
2626
- name: Cancel Previous Runs
27-
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
27+
uses: styfle/cancel-workflow-action@3155a141048f8f89c06b4cdae32e7853e97536bc # v0.13.0
2828
with:
2929
access_token: ${{ github.token }}
3030

31-
- uses: actions/checkout@v4
31+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3232
with:
3333
fetch-depth: 0
3434

@@ -37,7 +37,7 @@ jobs:
3737
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
3838
3939
- name: Cache conda packages
40-
uses: actions/cache@v4
40+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
4141
env:
4242
CACHE_NUMBER: 0 # Increase to reset cache
4343
with:
@@ -86,15 +86,15 @@ jobs:
8686

8787
steps:
8888
- name: Cancel Previous Runs
89-
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
89+
uses: styfle/cancel-workflow-action@3155a141048f8f89c06b4cdae32e7853e97536bc # v0.13.0
9090
with:
9191
access_token: ${{ github.token }}
9292

93-
- uses: actions/checkout@v4
93+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9494
with:
9595
fetch-depth: 0
9696

97-
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
97+
- uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
9898
with:
9999
miniforge-version: latest
100100
use-mamba: 'true'
@@ -103,7 +103,7 @@ jobs:
103103
python-version: '3.13' # no python 3.14 support by conda-build
104104

105105
- name: Cache conda packages
106-
uses: actions/cache@v4
106+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
107107
env:
108108
CACHE_NUMBER: 3 # Increase to reset cache
109109
with:
@@ -126,7 +126,7 @@ jobs:
126126
run: conda build --no-test --python ${{ matrix.python }} -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels conda-recipe
127127

128128
- name: Upload artifact
129-
uses: actions/upload-artifact@v4
129+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
130130
with:
131131
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
132132
path: ${{ env.CONDA_BLD }}${{ env.PACKAGE_NAME }}-*.conda
@@ -153,7 +153,7 @@ jobs:
153153

154154
steps:
155155
- name: Download artifact
156-
uses: actions/download-artifact@v4
156+
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
157157
with:
158158
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
159159

@@ -186,7 +186,7 @@ jobs:
186186
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
187187
188188
- name: Cache conda packages
189-
uses: actions/cache@v4
189+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
190190
env:
191191
CACHE_NUMBER: 0 # Increase to reset cache
192192
with:
@@ -236,11 +236,11 @@ jobs:
236236

237237
steps:
238238
- name: Download artifact
239-
uses: actions/download-artifact@v4
239+
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
240240
with:
241241
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
242242

243-
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
243+
- uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
244244
with:
245245
miniforge-version: latest
246246
use-mamba: 'true'
@@ -274,7 +274,7 @@ jobs:
274274
more lockfile
275275
276276
- name: Cache conda packages
277-
uses: actions/cache@v4
277+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
278278
env:
279279
CACHE_NUMBER: 3 # Increase to reset cache
280280
with:

0 commit comments

Comments
 (0)