Skip to content

Commit 8eb2dc0

Browse files
committed
Watch the release lines only
main is the old line and gets nothing new, so the workflows stop watching it: CI, CodeQL, the dependency graph, the SHA-pinning and zizmor checks run on '*.X.X' alone. dependabot names 21.X.X outright instead of following the default branch, and moves when the next line starts.
1 parent 853c454 commit 8eb2dc0

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,20 @@ version: 2
22
# A release is proposed only once it is a week old: a compromised or broken release is usually pulled
33
# within days. The cooldown holds back version updates only; security updates still come at once.
44
#
5-
# No target-branch: the pull requests go to the default branch, which is the current release line,
6-
# 21.X.X today.
5+
# target-branch names the current release line; it moves when the next line starts.
76
updates:
87
- package-ecosystem: "github-actions"
98
directory: "/"
109
schedule:
1110
interval: "weekly"
11+
target-branch: "21.X.X"
1212
cooldown:
1313
default-days: 7
1414

1515
- package-ecosystem: "gradle"
1616
directory: "/"
1717
schedule:
1818
interval: "weekly"
19+
target-branch: "21.X.X"
1920
cooldown:
2021
default-days: 7

‎.github/workflows/ci.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: CI
33
on:
44
push:
55
branches:
6-
- main
76
- '*.X.X' # a release line is named after the Java version it is built for: 21.X.X
87
pull_request:
98

‎.github/workflows/codeql-analysis.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: "CodeQL"
22

33
on:
44
push:
5-
branches: [ 'main', '*.X.X' ]
5+
branches: [ '*.X.X' ]
66
pull_request:
7-
branches: [ 'main', '*.X.X' ]
7+
branches: [ '*.X.X' ]
88
schedule:
99
- cron: '33 9 * * 6'
1010

‎.github/workflows/dependency-submission.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Submit dependency graph
22

33
on:
44
push:
5-
branches: [ 'main', '*.X.X' ]
5+
branches: [ '*.X.X' ]
66

77
permissions:
88
contents: write

‎.github/workflows/sha-pinning-check.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Ensure SHA-pinned actions
22

33
on:
44
pull_request:
5-
branches: [ 'main', '*.X.X' ]
5+
branches: [ '*.X.X' ]
66
push:
7-
branches: [ 'main', '*.X.X' ]
7+
branches: [ '*.X.X' ]
88

99
permissions:
1010
contents: read

‎.github/workflows/zizmor.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: GitHub Actions Security Analysis with zizmor 🌈
22

33
on:
44
push:
5-
branches: ["main", "*.X.X"]
5+
branches: ["*.X.X"]
66
pull_request:
77
branches: ["**"]
88

0 commit comments

Comments
 (0)