Skip to content

Commit 130a747

Browse files
committed
chore: fix security issues according to zizmor
1 parent 3f96102 commit 130a747

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v5
13+
with:
14+
persist-credentials: false
1315
- name: Install poetry
1416
run: pipx install poetry
1517
- name: Set up Python
@@ -19,7 +21,7 @@ jobs:
1921
- name: Install deps
2022
run: poetry install
2123
- name: Set version
22-
run: poetry version "${{ github.ref_name }}"
24+
run: poetry version "${GITHUB_REF_NAME}"
2325
- name: Release package
2426
env:
2527
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}

.github/workflows/release_docs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v5
17+
with:
18+
persist-credentials: false
1719
- name: Setup pnpm
1820
uses: pnpm/action-setup@v4
1921
- name: Setup Node.js

.github/workflows/test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
- '*.md'
88
push:
99

10+
permissions:
11+
actions: read
12+
contents: read
13+
pull-requests: read
14+
1015
jobs:
1116
lint:
1217
strategy:
@@ -18,6 +23,8 @@ jobs:
1823
runs-on: ubuntu-latest
1924
steps:
2025
- uses: actions/checkout@v5
26+
with:
27+
persist-credentials: false
2128
- name: Install poetry
2229
run: pipx install poetry
2330
- name: Set up Python
@@ -38,6 +45,8 @@ jobs:
3845
runs-on: "${{ matrix.os }}"
3946
steps:
4047
- uses: actions/checkout@v5
48+
with:
49+
persist-credentials: false
4150
- name: Install poetry
4251
run: pipx install poetry
4352
- name: Set up Python

0 commit comments

Comments
 (0)