@@ -47,10 +47,12 @@ jobs:
4747 python-version : ['3.10', '3.11', '3.12', '3.13', '3.14']
4848
4949 steps :
50- - uses : actions/checkout@v3
50+ - uses : actions/checkout@v6
51+ with :
52+ persist-credentials : false
5153
5254 - name : Set up Python
53- uses : actions/setup-python@v4
55+ uses : actions/setup-python@v6
5456 with :
5557 python-version : ${{ matrix.python-version }}
5658 allow-prereleases : true
8486 runs-on : ubuntu-latest
8587
8688 steps :
87- - uses : actions/checkout@v3
88- - uses : actions/setup-python@v4
89+ - uses : actions/checkout@v6
90+ with :
91+ persist-credentials : false
92+
93+ - uses : actions/setup-python@v6
8994 with :
9095 # Use latest Python, so it understands all syntax.
9196 python-version : 3.14
@@ -112,13 +117,14 @@ jobs:
112117 runs-on : ubuntu-latest
113118
114119 steps :
115- - uses : actions/checkout@v3
120+ - uses : actions/checkout@v6
116121 with :
117122 # Need full history for various diff checks to work.
118123 fetch-depth : 0
124+ persist-credentials : false
119125
120126 - name : Set up Python
121- uses : actions/setup-python@v4
127+ uses : actions/setup-python@v6
122128 with :
123129 python-version : ' ${{ env.DEFAULT_PYTHON_VERSION }}'
124130
@@ -136,9 +142,12 @@ jobs:
136142 name : API docs build
137143 runs-on : ubuntu-24.04
138144 steps :
139- - uses : actions/checkout@v3
145+ - uses : actions/checkout@v6
146+ with :
147+ persist-credentials : false
148+
140149 - name : Set up Python
141- uses : actions/setup-python@v4
150+ uses : actions/setup-python@v6
142151 with :
143152 python-version : ${{ env.DEFAULT_PYTHON_VERSION }}
144153 - name : Install dependencies
@@ -167,10 +176,12 @@ jobs:
167176 id-token : write
168177
169178 steps :
170- - uses : actions/checkout@v3
179+ - uses : actions/checkout@v6
180+ with :
181+ persist-credentials : false
171182
172183 - name : Set up Python
173- uses : actions/setup-python@v4
184+ uses : actions/setup-python@v6
174185 with :
175186 python-version : ' ${{ env.DEFAULT_PYTHON_VERSION }}'
176187
@@ -188,9 +199,11 @@ jobs:
188199
189200 - name : Check matched tag version and branch version - on tag
190201 if : startsWith(github.ref, 'refs/tags/')
202+ env :
203+ GITHUB_REF : " ${{ github.ref }}"
191204 run : |
192205 python -Im pip install --upgrade pep517
193- python admin/check_tag_version_match.py "${{ github.ref }} "
206+ python admin/check_tag_version_match.py "$GITHUB_REF "
194207
195208 - name : Publish to PyPI - on tag
196209 if : startsWith(github.ref, 'refs/tags/')
0 commit comments