Skip to content

Commit ec7e795

Browse files
committed
Pin GitHub actions by hash
1 parent f4b4685 commit ec7e795

File tree

4 files changed

+31
-31
lines changed

4 files changed

+31
-31
lines changed

.github/workflows/build-docs.yml

Lines changed: 4 additions & 4 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@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
2020
with:
2121
access_token: ${{ github.token }}
2222
- name: Add Intel repository
@@ -33,7 +33,7 @@ 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@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
3737
with:
3838
python-version: "3.14"
3939
architecture: x64
@@ -43,7 +43,7 @@ jobs:
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
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@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.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@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
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@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
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
@@ -31,15 +31,15 @@ jobs:
3131
- python: "3.14"
3232
numpy: "2.3"
3333
steps:
34-
- uses: actions/checkout@v4
34+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3535
with:
3636
fetch-depth: 0
3737

3838
- name: Set pkgs_dirs
3939
run: |
4040
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
4141
- name: Cache conda packages
42-
uses: actions/cache@v4
42+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
4343
env:
4444
CACHE_NUMBER: 0 # Increase to reset cache
4545
with:
@@ -66,7 +66,7 @@ jobs:
6666
$CHANNELS \
6767
conda-recipe-cf
6868
- name: Upload artifact
69-
uses: actions/upload-artifact@v4
69+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
7070
with:
7171
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
7272
path: /usr/share/miniconda/conda-bld/linux-64/${{ env.PACKAGE_NAME }}-*.conda
@@ -90,17 +90,17 @@ jobs:
9090
env:
9191
conda-bld: C:\Miniconda\conda-bld\win-64\
9292
steps:
93-
- uses: actions/checkout@v4
93+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
9494
with:
9595
fetch-depth: 0
96-
- uses: conda-incubator/setup-miniconda@v3
96+
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
9797
with:
9898
conda-remove-defaults: true
9999
auto-activate-base: true
100100
activate-environment: ""
101101

102102
- name: Cache conda packages
103-
uses: actions/cache@v4
103+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
104104
env:
105105
CACHE_NUMBER: 3 # Increase to reset cache
106106
with:
@@ -117,7 +117,7 @@ jobs:
117117
- name: Build conda package
118118
run: conda build --no-test --python ${{ matrix.python }} --numpy ${{ matrix.numpy }} -c conda-forge --override-channels conda-recipe-cf
119119
- name: Upload artifact
120-
uses: actions/upload-artifact@v4
120+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
121121
with:
122122
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
123123
path: ${{ env.conda-bld }}${{ env.PACKAGE_NAME }}-*.conda
@@ -145,7 +145,7 @@ jobs:
145145

146146
steps:
147147
- name: Download artifact
148-
uses: actions/download-artifact@v4
148+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
149149
with:
150150
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
151151
- name: Add conda to system path
@@ -172,7 +172,7 @@ jobs:
172172
run: |
173173
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
174174
- name: Cache conda packages
175-
uses: actions/cache@v4
175+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
176176
env:
177177
CACHE_NUMBER: 0 # Increase to reset cache
178178
with:
@@ -220,10 +220,10 @@ jobs:
220220

221221
steps:
222222
- name: Download artifact
223-
uses: actions/download-artifact@v4
223+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
224224
with:
225225
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
226-
- uses: conda-incubator/setup-miniconda@v3
226+
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
227227
with:
228228
conda-remove-defaults: true
229229
auto-activate-base: true
@@ -251,7 +251,7 @@ jobs:
251251
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
252252
more lockfile
253253
- name: Cache conda packages
254-
uses: actions/cache@v4
254+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
255255
env:
256256
CACHE_NUMBER: 3 # Increase to reset cache
257257
with:

.github/workflows/conda-package.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ jobs:
2121
matrix:
2222
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2525
with:
2626
fetch-depth: 0
2727

2828
- name: Set pkgs_dirs
2929
run: |
3030
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
3131
- name: Cache conda packages
32-
uses: actions/cache@v4
32+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
3333
env:
3434
CACHE_NUMBER: 0 # Increase to reset cache
3535
with:
@@ -56,7 +56,7 @@ jobs:
5656
$CHANNELS \
5757
conda-recipe
5858
- name: Upload artifact
59-
uses: actions/upload-artifact@v4
59+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
6060
with:
6161
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
6262
path: /usr/share/miniconda/conda-bld/linux-64/${{ env.PACKAGE_NAME }}-*.conda
@@ -70,17 +70,17 @@ jobs:
7070
env:
7171
conda-bld: C:\Miniconda\conda-bld\win-64\
7272
steps:
73-
- uses: actions/checkout@v4
73+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
7474
with:
7575
fetch-depth: 0
76-
- uses: conda-incubator/setup-miniconda@v3
76+
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
7777
with:
7878
conda-remove-defaults: true
7979
auto-activate-base: true
8080
activate-environment: ""
8181

8282
- name: Cache conda packages
83-
uses: actions/cache@v4
83+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
8484
env:
8585
CACHE_NUMBER: 3 # Increase to reset cache
8686
with:
@@ -97,7 +97,7 @@ jobs:
9797
- name: Build conda package
9898
run: conda build --no-test --python ${{ matrix.python }} -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels conda-recipe
9999
- name: Upload artifact
100-
uses: actions/upload-artifact@v4
100+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
101101
with:
102102
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
103103
path: ${{ env.conda-bld }}${{ env.PACKAGE_NAME }}-*.conda
@@ -123,7 +123,7 @@ jobs:
123123

124124
steps:
125125
- name: Download artifact
126-
uses: actions/download-artifact@v4
126+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
127127
with:
128128
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
129129
- name: Add conda to system path
@@ -150,7 +150,7 @@ jobs:
150150
run: |
151151
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
152152
- name: Cache conda packages
153-
uses: actions/cache@v4
153+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
154154
env:
155155
CACHE_NUMBER: 0 # Increase to reset cache
156156
with:
@@ -197,10 +197,10 @@ jobs:
197197

198198
steps:
199199
- name: Download artifact
200-
uses: actions/download-artifact@v4
200+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
201201
with:
202202
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
203-
- uses: conda-incubator/setup-miniconda@v3
203+
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
204204
with:
205205
conda-remove-defaults: true
206206
auto-activate-base: true
@@ -228,7 +228,7 @@ jobs:
228228
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
229229
more lockfile
230230
- name: Cache conda packages
231-
uses: actions/cache@v4
231+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
232232
env:
233233
CACHE_NUMBER: 3 # Increase to reset cache
234234
with:

0 commit comments

Comments
 (0)