99env :
1010 FORCE_COLOR : 1
1111
12+ permissions :
13+ contents : read
14+
1215jobs :
1316
1417 packaging :
@@ -23,15 +26,15 @@ jobs:
2326 uses : tskit-dev/.github/.github/workflows/c-tests.yml@v17
2427 with :
2528 library-directory : c
26- secrets : inherit
29+ secrets : inherit # zizmor: ignore[secrets-inherit] trusted first-party tskit-dev reusable workflow; needs CODECOV_TOKEN
2730
2831 test-python-c :
2932 name : Python-C tests
3033 uses : tskit-dev/.github/.github/workflows/python-c-tests.yml@v17
3134 with :
3235 tests : python/tests/test_python_c.py python/tests/test_dict_encoding.py
3336 pyproject-directory : python
34- secrets : inherit
37+ secrets : inherit # zizmor: ignore[secrets-inherit] trusted first-party tskit-dev reusable workflow; needs CODECOV_TOKEN
3538
3639
3740 test :
4245 python-version : ${{ matrix.python }}
4346 pyproject-directory : python
4447 coverage-directory : python/tskit
45- secrets : inherit
48+ secrets : inherit # zizmor: ignore[secrets-inherit] trusted first-party tskit-dev reusable workflow; needs CODECOV_TOKEN
4649 strategy :
4750 matrix :
4851 python : [ 3.11, 3.13 ]
@@ -62,15 +65,17 @@ jobs:
6265 shell : msys2 {0}
6366 steps :
6467 - name : Cancel Previous Runs
65- uses : styfle/cancel-workflow-action@0.13.0
68+ uses : styfle/cancel-workflow-action@d07a454dad7609a92316b57b23c9ccfd4f59af66 # 0.13.1
6669 with :
6770 access_token : ${{ github.token }}
6871
6972 - name : ' Checkout'
70- uses : actions/checkout@v6.0.2
73+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
74+ with :
75+ persist-credentials : false
7176
7277 - name : Setup MSYS2 ${{matrix.sys}}
73- uses : msys2/setup-msys2@v2.27 .0
78+ uses : msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2.32 .0
7479 with :
7580 msystem : ${{matrix.sys}}
7681 update : true
@@ -98,17 +103,18 @@ jobs:
98103
99104 steps :
100105 - name : Cancel Previous Runs
101- uses : styfle/cancel-workflow-action@0.13.0
106+ uses : styfle/cancel-workflow-action@d07a454dad7609a92316b57b23c9ccfd4f59af66 # 0.13.1
102107 with :
103108 access_token : ${{ github.token }}
104109
105110 - name : Checkout
106- uses : actions/checkout@v6 .0.2
111+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 .0.0
107112 with :
108113 submodules : true
114+ persist-credentials : false
109115
110116 - name : Install uv and set the python version
111- uses : astral-sh/setup-uv@v6
117+ uses : astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
112118 with :
113119 python-version : 3.11
114120 version : " 0.10.0"
@@ -132,7 +138,7 @@ jobs:
132138 python/tests/test_jit.py
133139
134140 - name : Upload coverage to Codecov
135- uses : codecov/codecov-action@v7.0.0
141+ uses : codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
136142 with :
137143 token : ${{ secrets.CODECOV_TOKEN }}
138144 fail_ci_if_error : true
@@ -158,22 +164,23 @@ jobs:
158164
159165 steps :
160166 - name : Cancel Previous Runs
161- uses : styfle/cancel-workflow-action@0.13.0
167+ uses : styfle/cancel-workflow-action@d07a454dad7609a92316b57b23c9ccfd4f59af66 # 0.13.1
162168 with :
163169 access_token : ${{ github.token }}
164170
165171 - name : Checkout
166- uses : actions/checkout@v6 .0.2
172+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 .0.0
167173 with :
168174 submodules : true
175+ persist-credentials : false
169176
170177 - name : Install system deps
171178 run : |
172179 sudo apt-get update
173180 sudo apt-get install -y libcunit1-dev ninja-build clang
174181
175182 - name : Install uv
176- uses : astral-sh/setup-uv@v6
183+ uses : astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
177184 with :
178185 version : " 0.10.0"
179186
0 commit comments