2020 # one distinguishes color depth, where "3" -> "256-bit color".
2121 FORCE_COLOR : 3
2222
23+ permissions : {}
24+
2325jobs :
2426 cache-pixi-lock :
2527 runs-on : ubuntu-slim
28+ permissions :
29+ contents : read
2630 outputs :
2731 cache-key : ${{ steps.pixi-lock.outputs.cache-key }}
2832 pixi-version : ${{ steps.pixi-lock.outputs.pixi-version }}
2933 steps :
30- - uses : actions/checkout@v4
34+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
35+ with :
36+ persist-credentials : false
3137 - uses : Parcels-code/pixi-lock/create-and-cache@38495788b79a5ff26009aecc15daa9a8310b8832 # v0.1.0
3238 id : pixi-lock
33- - uses : actions/upload-artifact@v6 # make available as an artifact for local testing
39+ - uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
3440 with :
3541 name : pixi-lock
3642 path : pixi.lock
3945 name : " Unit tests: ${{ matrix.runs-on }} | pixi run -e ${{ matrix.pixi-environment }} tests"
4046 runs-on : ${{ matrix.runs-on }}
4147 needs : cache-pixi-lock
48+ permissions :
49+ contents : read
4250 strategy :
4351 fail-fast : false
4452 matrix :
@@ -48,13 +56,14 @@ jobs:
4856 - pixi-environment : " test-py310"
4957 runs-on : ubuntu-latest
5058 steps :
51- - uses : actions/checkout@v6
59+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
5260 with :
5361 fetch-depth : 0
62+ persist-credentials : false
5463 - uses : Parcels-code/pixi-lock/restore@38495788b79a5ff26009aecc15daa9a8310b8832 # v0.1.0
5564 with :
5665 cache-key : ${{ needs.cache-pixi-lock.outputs.cache-key }}
57- - uses : prefix-dev/setup-pixi@v0.9.4
66+ - uses : prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
5867 with :
5968 cache : true
6069 cache-write : ${{ github.event_name == 'push' && github.ref_name == 'main' }}
6675 --durations=20
6776
6877 - name : Upload coverage report
69- uses : codecov/codecov-action@v5.5.2
78+ uses : codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
79+ with :
80+ token : ${{ secrets.CODECOV_TOKEN }} # zizmor: ignore[secrets-outside-env]
81+
82+ zizmor :
83+ name : GHA Security Analysis using Zizmor
84+ runs-on : ubuntu-latest
85+ permissions :
86+ security-events : write # Required for upload-sarif (used by zizmor-action) to upload SARIF files.
87+ steps :
88+ - name : Checkout repository
89+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7090 with :
71- token : ${{ secrets.CODECOV_TOKEN }}
91+ persist-credentials : false
92+
93+ - name : Run zizmor
94+ uses : zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
95+
96+
7297# typechecking:
7398# name: "TypeChecking: pixi run typing"
7499# runs-on: ubuntu-latest
0 commit comments