@@ -4,9 +4,9 @@ name: DepTyCheck
44on :
55 push :
66 branches :
7- - ' ** '
7+ - " ** "
88 tags :
9- - ' ** '
9+ - " ** "
1010 pull_request :
1111 branches :
1212 - main
1515 workflow_dispatch :
1616 schedule :
1717 # We want to run in the beginning of the day, right after the `pack` collection is built at the end of the previous day.
18- - cron : ' 0 1 * * *'
18+ - cron : " 0 1 * * *"
1919
20- permissions : read-all
20+ permissions :
21+ contents : read
2122
2223concurrency :
2324 group : ${{ github.workflow }}@${{ github.ref }}
6162 container : ghcr.io/stefan-hoeck/idris2-pack:latest
6263 steps :
6364 - uses : actions/checkout@v4
65+ with :
66+ persist-credentials : false # https://docs.zizmor.sh/audits/#artipacked
6467
6568 - run : pack update-db
6669 - name : Switch to appropriate `pack` collection
8285 container : ghcr.io/stefan-hoeck/idris2-pack:latest
8386 steps :
8487 - uses : actions/checkout@v4
88+ with :
89+ persist-credentials : false # https://docs.zizmor.sh/audits/#artipacked
8590 - name : Restore state of `pack`
8691 uses : actions/download-artifact@v4
8792 with :
@@ -115,6 +120,8 @@ jobs:
115120 steps :
116121 - name : Checkout
117122 uses : actions/checkout@v4
123+ with :
124+ persist-credentials : false # https://docs.zizmor.sh/audits/#artipacked
118125 - name : Restore built thirdparties
119126 uses : actions/download-artifact@v4
120127 with :
@@ -137,6 +144,8 @@ jobs:
137144 container : ghcr.io/stefan-hoeck/idris2-pack:latest
138145 steps :
139146 - uses : actions/checkout@v4
147+ with :
148+ persist-credentials : false # https://docs.zizmor.sh/audits/#artipacked
140149 - name : Restore built thirdparties
141150 uses : actions/download-artifact@v4
142151 with :
@@ -148,7 +157,7 @@ jobs:
148157 - run : pack install deptycheck
149158
150159 - name : Tar the `pack` dir
151- run : .github/tar-pack save-pack "${{ env.pack_dir_file }}"
160+ run : .github/tar-pack save-pack "${{ env.pack_dir_file }}"
152161 - name : Tar built TTC files
153162 run : find "$(pwd)" -name '*.tt[cm]' | .github/tar-pack save-stdin "${{ env.pack_dir_file }}"
154163 - name : Save built DepTyCheck
@@ -168,6 +177,8 @@ jobs:
168177 container : sphinxdoc/sphinx:latest
169178 steps :
170179 - uses : actions/checkout@v4
180+ with :
181+ persist-credentials : false # https://docs.zizmor.sh/audits/#artipacked
171182 - name : Install dependencies
172183 run : pip3 install -r docs/requirements.txt
173184 - run : alias sh=bash
@@ -187,6 +198,8 @@ jobs:
187198 steps :
188199 - name : Checkout
189200 uses : actions/checkout@v4
201+ with :
202+ persist-credentials : false # https://docs.zizmor.sh/audits/#artipacked
190203 - name : Get test sets
191204 id : get-test-sets
192205 run : |
@@ -213,6 +226,8 @@ jobs:
213226 steps :
214227 - name : Checkout
215228 uses : actions/checkout@v4
229+ with :
230+ persist-credentials : false # https://docs.zizmor.sh/audits/#artipacked
216231 - name : Restore built DepTyCheck
217232 uses : actions/download-artifact@v4
218233 with :
@@ -223,7 +238,10 @@ jobs:
223238 - name : Sleep a random bit
224239 run : sleep "$(shuf -i 0-10 -n 1)"
225240
226- - run : pack test deptycheck "${{matrix.test_set}}"
241+ - name : Run tests for ${{ matrix.test_set }}
242+ run : pack test deptycheck "${TEST_SET}"
243+ env :
244+ TEST_SET : ${{ matrix.test_set }}
227245
228246 # ################
229247 # Test examples #
@@ -238,6 +256,8 @@ jobs:
238256 steps :
239257 - name : Checkout
240258 uses : actions/checkout@v4
259+ with :
260+ persist-credentials : false # https://docs.zizmor.sh/audits/#artipacked
241261 - name : Get examples
242262 id : get-examples
243263 run : |
@@ -261,8 +281,12 @@ jobs:
261281 fail-fast : false # all test cases are more or less independent
262282 matrix :
263283 example : ${{ fromJSON(needs.get-examples.outputs.examples) }}
284+ env :
285+ EXAMPLE_NAME : ${{ matrix.example }}
264286 steps :
265287 - uses : actions/checkout@v4
288+ with :
289+ persist-credentials : false # https://docs.zizmor.sh/audits/#artipacked
266290 - name : Restore built DepTyCheck
267291 uses : actions/download-artifact@v4
268292 with :
@@ -273,5 +297,7 @@ jobs:
273297 - name : Sleep a random bit
274298 run : sleep "$(shuf -i 0-10 -n 1)"
275299
276- - run : pack build "${{matrix.example}}"
277- - run : pack test "${{matrix.example}}"
300+ - name : Build ${{ matrix.example }}
301+ run : pack build "${EXAMPLE_NAME}"
302+ - name : Test ${{ matrix.example }}
303+ run : pack test "${EXAMPLE_NAME}"
0 commit comments