Skip to content

Commit 1ee72c7

Browse files
committed
Add lint-workflows.yml
1 parent 0383e1b commit 1ee72c7

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Lint workflows
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
5+
cancel-in-progress: true
6+
7+
on:
8+
push:
9+
branches: [main]
10+
paths:
11+
- ".github/workflows/**"
12+
- ".github/actions/**"
13+
pull_request:
14+
branches: ["**"]
15+
paths:
16+
- ".github/workflows/**"
17+
- ".github/actions/**"
18+
19+
permissions:
20+
contents: read
21+
22+
jobs:
23+
actionlint:
24+
name: actionlint
25+
runs-on: ubuntu-latest
26+
timeout-minutes: 5
27+
steps:
28+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
29+
with:
30+
persist-credentials: false
31+
- uses: raven-actions/actionlint@205b530c5d9fa8f44ae9ed59f341a0db994aa6f8 # v2.1.2
32+
33+
zizmor:
34+
name: zizmor
35+
runs-on: ubuntu-latest
36+
timeout-minutes: 5
37+
steps:
38+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
39+
with:
40+
persist-credentials: false
41+
- uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6

0 commit comments

Comments
 (0)