Skip to content

Commit

Permalink
Add Zizmor pre-commit hook (#87)
Browse files Browse the repository at this point in the history
It helps identify security issues in GitHub Actions workflows.
  • Loading branch information
Tenzer authored Dec 12, 2024
1 parent 278f5a8 commit 54e0f3b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
steps:
- name: Checkout the code
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Poetry
run: pipx install poetry
Expand All @@ -35,6 +37,8 @@ jobs:
steps:
- name: Checkout the code
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -59,6 +63,8 @@ jobs:
steps:
- name: Checkout the code
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Poetry
run: pipx install poetry
Expand All @@ -81,6 +87,8 @@ jobs:
steps:
- name: Checkout the code
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Poetry
run: pipx install poetry
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
steps:
- name: Checkout the code
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Poetry
run: pipx install poetry
Expand Down
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ repos:
args:
- --fix
- id: ruff-format

- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v0.8.0
hooks:
- id: zizmor

0 comments on commit 54e0f3b

Please sign in to comment.