12
12
- cron : " 21 3 * * *"
13
13
workflow_dispatch :
14
14
15
+ permissions : {}
16
+
15
17
jobs :
16
18
list :
17
19
runs-on : ubuntu-latest
18
20
outputs :
19
21
noxenvs : ${{ steps.noxenvs-matrix.outputs.noxenvs }}
20
22
steps :
21
23
- uses : actions/checkout@v4
24
+ with :
25
+ persist-credentials : false
22
26
- name : Set up uv
23
- uses : astral-sh/setup-uv@v6
27
+ uses : astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb
24
28
with :
25
- enable-cache : true
29
+ enable-cache : ${{ github.ref_type != 'tag' }} # zizmor: ignore[cache-poisoning]
26
30
- id : noxenvs-matrix
27
31
run : |
28
32
echo >>$GITHUB_OUTPUT noxenvs=$(
72
76
73
77
steps :
74
78
- uses : actions/checkout@v4
79
+ with :
80
+ persist-credentials : false
75
81
- name : Install dependencies
76
82
run : sudo apt-get update && sudo apt-get install -y libenchant-2-dev
77
83
if : runner.os == 'Linux' && startsWith(matrix.noxenv, 'docs')
@@ -94,12 +100,12 @@ jobs:
94
100
if : runner.os == 'Windows' && startsWith(matrix.noxenv, 'tests')
95
101
96
102
- name : Set up uv
97
- uses : astral-sh/setup-uv@v6
103
+ uses : astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb
98
104
with :
99
105
enable-cache : true
100
106
101
107
- name : Run nox
102
- run : uvx nox -s "${{ matrix.noxenv }}" -- ${{ matrix.posargs }}
108
+ run : uvx nox -s "${{ matrix.noxenv }}" -- ${{ matrix.posargs }} # zizmor: ignore[template-injection]
103
109
104
110
packaging :
105
111
needs : ci
@@ -116,8 +122,9 @@ jobs:
116
122
- uses : actions/checkout@v4
117
123
with :
118
124
fetch-depth : 0
125
+ persist-credentials : false
119
126
- name : Set up uv
120
- uses : astral-sh/setup-uv@v6
127
+ uses : astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb
121
128
with :
122
129
enable-cache : true
123
130
@@ -126,10 +133,10 @@ jobs:
126
133
127
134
- name : Publish to PyPI
128
135
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
129
- uses : pypa/gh-action-pypi-publish@release/v1
130
- - name : Create a Release
136
+ uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc
137
+ - name : Create a GitHub Release
131
138
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
132
- uses : softprops/action-gh-release@v2
139
+ uses : softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631
133
140
with :
134
141
files : |
135
142
dist/*
0 commit comments