Skip to content

Commit fe43441

Browse files
committed
ci: stop persisting the GitHub token and check the workflows with zizmor
1 parent 76c56cc commit fe43441

3 files changed

Lines changed: 20 additions & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 8 additions & 1 deletion
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@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
2325
with:
@@ -36,7 +38,10 @@ jobs:
3638
permissions:
3739
contents: write
3840
steps:
39-
- uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
41+
- name: create the release
42+
run: gh release create "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --verify-tag --notes ""
43+
env:
44+
GH_TOKEN: ${{ github.token }}
4045

4146
publish:
4247
name: release to pypi
@@ -69,6 +74,8 @@ jobs:
6974
artifact-metadata: write
7075
steps:
7176
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
77+
with:
78+
persist-credentials: false
7279
- uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0
7380
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
7481
- uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0

‎.github/workflows/tests.yaml‎

Lines changed: 8 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@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.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@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
5357
with:
@@ -63,13 +67,17 @@ 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
container:
6975
name: container image
7076
runs-on: ubuntu-24.04
7177
steps:
7278
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
79+
with:
80+
persist-credentials: false
7381
- name: Build image
7482
run: docker build --file Containerfile --tag scim2-server:ci .
7583
- name: Start container

‎.pre-commit-config.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ repos:
2020
hooks:
2121
- id: codespell
2222
args: [--write-changes]
23+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
24+
rev: fa412071e4f5d44d44f9e365f4676f9df92456a2 # frozen: v1.30.1
25+
hooks:
26+
- id: zizmor

0 commit comments

Comments
 (0)