Skip to content

Commit ae83927

Browse files
authored
ci: add some suggestions from zizmor (#925)
Signed-off-by: Henry Schreiner <[email protected]>
1 parent c628755 commit ae83927

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

.github/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
changelog:
2+
exclude:
3+
authors:
4+
- dependabot
5+
- pre-commit-ci

.github/workflows/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ on:
1111
- "action.yml"
1212
workflow_dispatch:
1313
# allow manual runs on branches without a PR
14+
1415
env:
1516
FORCE_COLOR: "1"
17+
18+
permissions: {}
19+
1620
jobs:
1721
action-default-tests:
1822
runs-on: ${{ matrix.os }}
@@ -28,6 +32,8 @@ jobs:
2832
- macos-14
2933
steps:
3034
- uses: actions/checkout@v4
35+
with:
36+
persist-credentials: false
3137
- uses: astral-sh/setup-uv@v5
3238
- uses: ./
3339
- run: nox --non-interactive --error-on-missing-interpreter --session github_actions_default_tests
@@ -36,6 +42,8 @@ jobs:
3642
runs-on: windows-latest
3743
steps:
3844
- uses: actions/checkout@v4
45+
with:
46+
persist-credentials: false
3947
- uses: actions/setup-python@v5
4048
with:
4149
python-version: 3.9

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ concurrency:
1313
group: ${{ github.workflow }}-${{ github.ref }}
1414
cancel-in-progress: true
1515

16+
permissions: {}
17+
1618
jobs:
1719
build:
1820
runs-on: ${{ matrix.os }}
@@ -32,6 +34,8 @@ jobs:
3234
python-version: "3.12"
3335
steps:
3436
- uses: actions/checkout@v4
37+
with:
38+
persist-credentials: false
3539
- name: Set up non-default Pythons
3640
uses: actions/setup-python@v5
3741
with:
@@ -69,6 +73,8 @@ jobs:
6973
runs-on: ubuntu-latest
7074
steps:
7175
- uses: actions/checkout@v4
76+
with:
77+
persist-credentials: false
7278
- name: Set up Python 3.12
7379
uses: actions/setup-python@v5
7480
with:
@@ -91,6 +97,8 @@ jobs:
9197
runs-on: ubuntu-latest
9298
steps:
9399
- uses: actions/checkout@v4
100+
with:
101+
persist-credentials: false
94102
- name: Set up Python 3.12
95103
uses: actions/setup-python@v5
96104
with:
@@ -103,6 +111,8 @@ jobs:
103111
runs-on: ubuntu-latest
104112
steps:
105113
- uses: actions/checkout@v4
114+
with:
115+
persist-credentials: false
106116
- name: Set up Python 3.12
107117
uses: actions/setup-python@v5
108118
with:
@@ -119,6 +129,8 @@ jobs:
119129
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
120130
steps:
121131
- uses: actions/checkout@v4
132+
with:
133+
persist-credentials: false
122134
- name: Build sdist and wheel
123135
run: pipx run build
124136
- name: Publish distribution PyPI

0 commit comments

Comments
 (0)