Skip to content

Commit bc071b9

Browse files
authored
🔒 ci(workflows): add zizmor security auditing (#216)
1 parent f6d78a9 commit bc071b9

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

.github/dependabot.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "daily"
7+
cooldown:
8+
default-days: 7

.github/workflows/check.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ jobs:
2828
- dev
2929
- pkg_meta
3030
steps:
31-
- uses: actions/checkout@v6
31+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3232
with:
3333
fetch-depth: 0
34+
persist-credentials: false
3435
- name: Install the latest version of uv
35-
uses: astral-sh/setup-uv@v7
36+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
3637
with:
37-
enable-cache: true
38+
enable-cache: false
3839
cache-dependency-glob: "pyproject.toml"
3940
github-token: ${{ secrets.GITHUB_TOKEN }}
4041
- name: Install tox

.github/workflows/release.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,20 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v6
13+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1414
with:
1515
fetch-depth: 0
16+
persist-credentials: false
1617
- name: Install the latest version of uv
17-
uses: astral-sh/setup-uv@v7
18+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
1819
with:
19-
enable-cache: true
20+
enable-cache: false
2021
cache-dependency-glob: "pyproject.toml"
2122
github-token: ${{ secrets.GITHUB_TOKEN }}
2223
- name: Build package
2324
run: uv build --python 3.14 --python-preference only-managed --sdist --wheel . --out-dir dist
2425
- name: Store the distribution packages
25-
uses: actions/upload-artifact@v7
26+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
2627
with:
2728
name: ${{ env.dists-artifact-name }}
2829
path: dist/*
@@ -37,11 +38,11 @@ jobs:
3738
id-token: write
3839
steps:
3940
- name: Download all the dists
40-
uses: actions/download-artifact@v8
41+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
4142
with:
4243
name: ${{ env.dists-artifact-name }}
4344
path: dist/
4445
- name: Publish to PyPI
45-
uses: pypa/gh-action-pypi-publish@v1.13.0
46+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
4647
with:
4748
attestations: true

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ repos:
4040
rev: "v0.21.0"
4141
hooks:
4242
- id: yamlfmt
43+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
44+
rev: v1.23.1
45+
hooks:
46+
- id: zizmor
4347
- repo: meta
4448
hooks:
4549
- id: check-hooks-apply

0 commit comments

Comments
 (0)