Skip to content

Commit 8d0137a

Browse files
committed
Improve workflow event filters.
- Fix primary branch to `master`. - Filter zizmor checks to `.github` tree changes. - Use same style in workflow files.
1 parent 2b8ad4f commit 8d0137a

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/main.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
name: Main CI
22

33
on:
4-
pull_request:
54
push:
65
branches:
7-
- main
6+
- 'master'
7+
pull_request:
8+
branches:
9+
- '**'
810

911
permissions: {}
1012

.github/workflows/zizmor.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@ name: GitHub Actions Security Analysis with zizmor
22

33
on:
44
push:
5-
branches: ["main"]
5+
branches:
6+
- 'master'
7+
paths:
8+
- '.github/**'
69
pull_request:
7-
branches: ["**"]
10+
branches:
11+
- '**'
12+
paths:
13+
- '.github/**'
814

915
permissions: {}
1016

0 commit comments

Comments
 (0)