Skip to content

Commit 767c7cb

Browse files
authored
Fix zizmor findings on CI (#221)
2 parents 099673e + 37971ed commit 767c7cb

File tree

6 files changed

+17
-18
lines changed

6 files changed

+17
-18
lines changed

.github/workflows/docs.yml

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

99
steps:
1010
- uses: actions/checkout@v4
11+
with:
12+
persist-credentials: false
1113

1214
- name: Set up Python
1315
uses: actions/setup-python@v5

.github/workflows/labels.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Sync labels
22

3-
permissions:
4-
pull-requests: write
5-
63
on:
74
push:
85
branches:
@@ -13,9 +10,13 @@ on:
1310

1411
jobs:
1512
sync:
13+
permissions:
14+
pull-requests: write
1615
runs-on: ubuntu-latest
1716
steps:
1817
- uses: actions/checkout@v4
18+
with:
19+
persist-credentials: false
1920
- uses: micnncim/action-label-syncer@v1
2021
with:
2122
prune: false

.github/workflows/lint.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,30 @@ on: [push, pull_request, workflow_dispatch]
44

55
env:
66
FORCE_COLOR: 1
7-
PIP_DISABLE_PIP_VERSION_CHECK: 1
8-
9-
permissions:
10-
contents: read
117

128
jobs:
139
lint:
1410
runs-on: ubuntu-latest
1511

1612
steps:
1713
- uses: actions/checkout@v4
14+
with:
15+
persist-credentials: false
1816
- uses: actions/setup-python@v5
1917
with:
2018
python-version: "3.x"
21-
cache: pip
22-
- uses: pre-commit/action@v3.0.1
19+
- uses: tox-dev/action-pre-commit-uv@v1
2320

2421
mypy:
2522
runs-on: ubuntu-latest
2623

2724
steps:
2825
- uses: actions/checkout@v4
26+
with:
27+
persist-credentials: false
28+
- uses: actions/setup-python@v5
29+
with:
30+
python-version: "3.x"
2931
- name: Install uv
3032
uses: hynek/setup-cached-uv@v2
3133
- name: Mypy

.github/workflows/release-drafter.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ on:
1414
# types: [opened, reopened, synchronize]
1515
workflow_dispatch:
1616

17-
permissions:
18-
contents: read
19-
2017
jobs:
2118
update_release_draft:
2219
if: github.repository_owner == 'python-humanize'

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ on:
1111
- published
1212
workflow_dispatch:
1313

14-
permissions:
15-
contents: read
16-
1714
env:
1815
FORCE_COLOR: 1
1916

@@ -27,6 +24,7 @@ jobs:
2724
- uses: actions/checkout@v4
2825
with:
2926
fetch-depth: 0
27+
persist-credentials: false
3028

3129
- uses: hynek/build-and-inspect-python-package@v2
3230

.github/workflows/test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: Test
22

33
on: [push, pull_request, workflow_dispatch]
44

5-
permissions:
6-
contents: read
7-
85
env:
96
FORCE_COLOR: 1
107

@@ -19,6 +16,8 @@ jobs:
1916

2017
steps:
2118
- uses: actions/checkout@v4
19+
with:
20+
persist-credentials: false
2221

2322
- name: Set up Python ${{ matrix.python-version }}
2423
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)