Skip to content

Commit 2bc884c

Browse files
authored
Merge branch 'main' into cleanup_checksh
2 parents 8f787d6 + 92b0480 commit 2bc884c

File tree

5 files changed

+24
-6
lines changed

5 files changed

+24
-6
lines changed

.github/workflows/autodeps.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
steps:
2222
- name: Checkout
2323
uses: actions/checkout@v4
24+
with:
25+
persist-credentials: true # credentials are needed to push commits
2426
- name: Setup python
2527
uses: actions/setup-python@v5
2628
with:

.github/workflows/check-newsfragment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
18+
persist-credentials: false
1819

1920
- name: Check newsfragments
2021
run: |

.github/workflows/ci.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
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
@@ -63,8 +66,11 @@ jobs:
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:
@@ -99,6 +105,7 @@ jobs:
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:

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010

1111
steps:
1212
- uses: actions/checkout@v4
13+
with:
14+
persist-credentials: false
1315
- uses: actions/setup-python@v5
1416
with:
1517
python-version: "3.9"

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ repos:
3838
rev: v1.0.0
3939
hooks:
4040
- id: sphinx-lint
41+
- repo: https://github.com/woodruffw/zizmor-pre-commit
42+
rev: v0.10.0
43+
hooks:
44+
- id: zizmor
4145
- repo: local
4246
hooks:
4347
- id: regenerate-files

0 commit comments

Comments
 (0)