Skip to content

Commit 60b0387

Browse files
committed
build: more checking of actions with Zizmor
1 parent 007f580 commit 60b0387

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.github/workflows/zizmor.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
2+
# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
3+
4+
name: Zizmor
5+
6+
on:
7+
push:
8+
branches:
9+
- master
10+
- nedbat/*
11+
pull_request:
12+
workflow_dispatch:
13+
14+
permissions: {}
15+
16+
jobs:
17+
zizmor:
18+
name: zizmor
19+
runs-on: ubuntu-latest
20+
permissions:
21+
contents: read
22+
actions: read
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
27+
with:
28+
persist-credentials: false
29+
30+
- name: Install the latest version of uv
31+
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 #v5.4.2
32+
with:
33+
enable-cache: false
34+
35+
- name: Run zizmor
36+
env:
37+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
run: uvx zizmor --pedantic .github/workflows

.github/zizmor.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Rules for checking workflows
2+
# https://woodruffw.github.io/zizmor
3+
4+
rules:
5+
unpinned-uses:
6+
config:
7+
policies:
8+
actions/*: hash-pin

0 commit comments

Comments
 (0)