Skip to content

Commit 280e21e

Browse files
committed
add zizmor job
1 parent 76d1b60 commit 280e21e

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/checksrc.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
2+
#
3+
# SPDX-License-Identifier: curl
4+
5+
name: 'Source'
6+
7+
'on':
8+
push:
9+
branches:
10+
- master
11+
pull_request:
12+
branches:
13+
- master
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
17+
cancel-in-progress: true
18+
19+
permissions: {}
20+
21+
jobs:
22+
linters:
23+
name: 'linters'
24+
runs-on: ubuntu-latest
25+
steps:
26+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
27+
with:
28+
persist-credentials: false
29+
30+
- name: 'install prereqs'
31+
run: |
32+
/home/linuxbrew/.linuxbrew/bin/brew install zizmor
33+
34+
- name: 'zizmor GHA'
35+
env:
36+
GH_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
37+
run: |
38+
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
39+
zizmor --pedantic .github/workflows/*.yml

0 commit comments

Comments
 (0)