3737
3838 - name : Grab the source from Git
3939 uses : actions/checkout@v4
40+ with :
41+ persist-credentials : false
4042
4143 - name : Get the dist version
4244 id : dist-version
@@ -50,10 +52,11 @@ jobs:
5052 - name : Set the expected dist artifact names
5153 id : artifact-name
5254 run : |
53- echo 'sdist=${{ env.dist-name }}-*.tar.gz' >> "${GITHUB_OUTPUT}"
54- echo 'wheel=${{
55- env.dist-name
56- }}-*-py3-none-any.whl' >> "${GITHUB_OUTPUT}"
55+ echo "sdist=${DIST_NAME}-${VERSION}.tar.gz" >> "${GITHUB_OUTPUT}"
56+ echo "wheel=${DIST_NAME}-${VERSION}-py3-none-any.whl" >> "${GITHUB_OUTPUT}"
57+ env :
58+ DIST_NAME : ${{ env.dist-name }}
59+ VERSION : ${{ steps.dist-version.outputs.version }}
5760
5861 - name : Install build
5962 run : python -Im pip install build
6366 - name : Verify that the artifacts with expected names got created
6467 run : >-
6568 ls -1
66- dist/${{ steps.artifact-name.outputs.sdist }}
67- dist/${{ steps.artifact-name.outputs.wheel }}
69+ dist/${SDIST}
70+ dist/${WHEEL}
71+ env :
72+ SDIST : ${{ steps.artifact-name.outputs.sdist }}
73+ WHEEL : ${{ steps.artifact-name.outputs.wheel }}
6874 - name : Store the distribution packages
6975 uses : actions/upload-artifact@v4
7076 with :
99105 uses: actions/checkout@v4
100106 with:
101107 path: git-src
108+ persist-credentials: false
102109
103110 - name : >-
104111 Smoke-test: install test requirements from the Git repo
@@ -260,6 +267,8 @@ jobs:
260267 - name : Grab the source from Git
261268 if : matrix.check_formatting == '1'
262269 uses : actions/checkout@v4
270+ with :
271+ persist-credentials : false
263272 - name : Setup python
264273 uses : actions/setup-python@v5
265274 with :
0 commit comments