Skip to content

Commit 0f8887d

Browse files
committed
ci: stop persisting the GitHub token and check the workflows with zizmor
1 parent db18597 commit 0f8887d

3 files changed

Lines changed: 22 additions & 4 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
21+
with:
22+
persist-credentials: false
2123
- name: Install uv
2224
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
2325
with:
@@ -57,10 +59,10 @@ jobs:
5759
- uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
5860
with:
5961
subject-path: bin/scim2-linux
60-
- uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
61-
with:
62-
files: |
63-
bin/scim2-linux
62+
- name: create the release
63+
run: gh release create "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --verify-tag --notes "" bin/scim2-linux
64+
env:
65+
GH_TOKEN: ${{ github.token }}
6466
publish:
6567
name: release to pypi
6668
needs: build

‎.github/workflows/tests.yaml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
- '3.11'
3232
steps:
3333
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
34+
with:
35+
persist-credentials: false
3436
- name: Install uv
3537
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
3638
with:
@@ -48,6 +50,8 @@ jobs:
4850
UV_LOCKED: 0
4951
steps:
5052
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
53+
with:
54+
persist-credentials: false
5155
- name: Install uv
5256
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
5357
with:
@@ -63,12 +67,16 @@ jobs:
6367
runs-on: ubuntu-24.04
6468
steps:
6569
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
70+
with:
71+
persist-credentials: false
6672
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
6773

6874
doc:
6975
runs-on: ubuntu-24.04
7076
steps:
7177
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
78+
with:
79+
persist-credentials: false
7280
- name: Install uv
7381
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
7482
with:
@@ -87,6 +95,8 @@ jobs:
8795
UV_PYTHON_PREFERENCE: only-system
8896
steps:
8997
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
98+
with:
99+
persist-credentials: false
90100
- name: Install uv
91101
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
92102
with:
@@ -103,6 +113,8 @@ jobs:
103113
runs-on: ubuntu-24.04
104114
steps:
105115
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
116+
with:
117+
persist-credentials: false
106118
- uses: cachix/install-nix-action@13d8dd58da0234aa297dedd986986ccb8e7f3e24 # v31.11.1
107119
with:
108120
github_access_token: ${{ secrets.GITHUB_TOKEN }}

‎.pre-commit-config.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ repos:
2727
hooks:
2828
- id: codespell
2929
args: [--write-changes]
30+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
31+
rev: fa412071e4f5d44d44f9e365f4676f9df92456a2 # frozen: v1.30.1
32+
hooks:
33+
- id: zizmor

0 commit comments

Comments
 (0)