Skip to content

Commit c70c675

Browse files
authored
Setup backport workflow and sync next setup (#2057)
* Setup backport workflow and sync next setup * sync * update branch
1 parent 9672019 commit c70c675

3 files changed

Lines changed: 28 additions & 42 deletions

File tree

.github/workflows/ci.yml

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ name: CI
22

33
on:
44
pull_request:
5-
push:
6-
branches: [main]
5+
# merge queue is required so all commits on target branches trigger this workflow
6+
# despite lack of the push event trigger here
77
merge_group:
8-
branches: [main]
8+
branches:
9+
- main
10+
- next
11+
- "maintenance/v[0-9]+"
912

1013
permissions:
1114
contents: read
@@ -15,6 +18,25 @@ concurrency:
1518
cancel-in-progress: true
1619

1720
jobs:
21+
lint-workflows:
22+
name: Lint workflows
23+
runs-on: ubuntu-latest
24+
permissions:
25+
actions: read # only required in private repos
26+
security-events: write # allow writing security events
27+
steps:
28+
- name: Checkout repository
29+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
30+
with:
31+
persist-credentials: false
32+
33+
- name: Run zizmor
34+
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3
35+
with:
36+
persona: pedantic
37+
annotations: true
38+
advanced-security: false
39+
1840
test:
1941
name: Test
2042
runs-on: ubuntu-latest
@@ -75,8 +97,8 @@ jobs:
7597
name: CI OK
7698
runs-on: ubuntu-latest
7799
if: always()
78-
needs: [test, typecheck, lint]
100+
needs: [lint-workflows, test, typecheck, lint]
79101
steps:
80102
- name: Exit with error if some jobs are not successful
81103
run: exit 1
82-
if: ${{ always() && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped') || contains(needs.*.result, 'cancelled')) }}
104+
if: ${{ always() && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')) }}

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- main
77
- next
8+
- "maintenance/v[0-9]+"
89

910
concurrency:
1011
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/zizmor.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)