@@ -11,13 +11,13 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313 - name : Cancel previous runs
14- uses : styfle/cancel-workflow-action@0.12 .1
14+ uses : styfle/cancel-workflow-action@d07a454dad7609a92316b57b23c9ccfd4f59af66 # 0.13 .1
1515 coverage :
1616 if : github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'messerlab/slim')
1717 runs-on : ubuntu-24.04
1818 steps :
1919 - name : Check out repository code
20- uses : actions/checkout@v4
20+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2121 - name : Set up GCC
2222 run : |
2323 sudo apt-get install gcc-12 g++-12 && \
3737 lcov --gcov-tool gcov-12 --ignore-errors gcov,mismatch --rc geninfo_unexecuted_blocks=1 --capture --directory Coverage --output-file coverage.info && \
3838 lcov --gcov-tool gcov-12 --ignore-errors gcov,mismatch,unused --remove coverage.info '/usr/*' '*/gsl/*' '*/eidos_zlib/*' --output-file coverage.info
3939 - name : Upload coverage reports to Codecov
40- uses : codecov/codecov-action@v5
40+ uses : codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
4141 with :
4242 token : ${{ secrets.CODECOV_TOKEN }}
4343 files : coverage.info
6161 runs-on : ${{ matrix.os }}
6262 steps :
6363 - name : Check out repository code
64- uses : actions/checkout@v4
64+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
6565 - name : Setup Miniforge
66- uses : conda-incubator/setup-miniconda@v3
66+ uses : conda-incubator/setup-miniconda@8ee1f361103df19b6f8c8655fd3967a8ecb162d5 # v4.0.1
6767 with :
6868 miniforge-version : latest
6969 activate-environment : anaconda-client-env
7373 run : echo "today=$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT
7474 shell : bash
7575 - name : Cache Conda env
76- uses : actions/cache@v3
76+ uses : actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
7777 with :
7878 path : ${{ env.CONDA }}/envs
7979 key :
@@ -138,9 +138,9 @@ jobs:
138138 shell : msys2 {0}
139139 steps :
140140 - name : Check out repository code
141- uses : actions/checkout@v4
141+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
142142 - name : Setup MSYS2 ${{matrix.sys}}
143- uses : msys2/setup-msys2@v2
143+ uses : msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2.32.0
144144 with :
145145 msystem : ${{matrix.sys}}
146146 update : true
@@ -151,7 +151,7 @@ jobs:
151151 mingw-w64-${{matrix.env}}-toolchain
152152 mingw-w64-${{matrix.env}}-cmake
153153 - name : Setup Miniforge
154- uses : conda-incubator/setup-miniconda@v3
154+ uses : conda-incubator/setup-miniconda@8ee1f361103df19b6f8c8655fd3967a8ecb162d5 # v4.0.1
155155 with :
156156 miniforge-version : latest
157157 activate-environment : anaconda-client-env
@@ -162,7 +162,7 @@ jobs:
162162 run : echo "today=$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT
163163 shell : bash
164164 - name : Cache Conda env
165- uses : actions/cache@v3
165+ uses : actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
166166 env :
167167 # Increase this value to reset cache if treerec/tests/environment.yml has not changed
168168 CACHE_NUMBER : 0
@@ -175,7 +175,7 @@ jobs:
175175 steps.get-date.outputs.today }}-${{
176176 hashFiles('treerec/tests/environment.yml') }}-${{ env.CACHE_NUMBER}}
177177 id : cache
178- - uses : conda-incubator/setup-miniconda@v3
178+ - uses : conda-incubator/setup-miniconda@8ee1f361103df19b6f8c8655fd3967a8ecb162d5 # v4.0.1
179179 with :
180180 activate-environment : anaconda-client-env
181181 environment-file : treerec/tests/environment.yml
@@ -245,7 +245,7 @@ jobs:
245245 shell : bash
246246 steps :
247247 - name : Check out repository code
248- uses : actions/checkout@v4
248+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
249249 - name : Workaround for gcc-11
250250 if : startsWith(matrix.os, 'ubuntu') && matrix.gcc == 11
251251 run : |
@@ -260,7 +260,7 @@ jobs:
260260 --slave /usr/bin/g++ g++ /usr/bin/g++-${{ matrix.gcc }}
261261
262262 - name : Install Qt
263- uses : jurplel/install-qt-action@v4
263+ uses : jurplel/install-qt-action@48d3ad6db93f3627c8ee7a0454bc6f3744f7e730 # v4.3.1
264264 with :
265265 version : ${{ matrix.qt }}
266266 - name : Release build with SLiMGUI
@@ -286,9 +286,9 @@ jobs:
286286 shell : msys2 {0}
287287 steps :
288288 - name : Check out repository code
289- uses : actions/checkout@v4
289+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
290290 - name : Setup MSYS2 ${{matrix.sys}}
291- uses : msys2/setup-msys2@v2
291+ uses : msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2.32.0
292292 with :
293293 msystem : ${{matrix.sys}}
294294 update : true
@@ -325,9 +325,9 @@ jobs:
325325 shell : msys2 {0}
326326 steps :
327327 - name : Check out repository code
328- uses : actions/checkout@v4
328+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
329329 - name : Setup MSYS2 ${{matrix.sys}}
330- uses : msys2/setup-msys2@v2
330+ uses : msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2.32.0
331331 with :
332332 msystem : ${{matrix.sys}}
333333 update : true
0 commit comments