Skip to content

Commit 4033748

Browse files
committed
ci: bump actions/checkout to v7 and track actions with dependabot
actions/checkout was the only action behind a major; the other ten are already on their latest. v7's one breaking change blocks checking out fork PRs for pull_request_target and workflow_run, neither of which is used here. Actions drifted because dependabot only watched gomod. Add the github-actions ecosystem so this stays automatic. It needs a directory per composite action: "/" alone covers .github/workflows and a root action.yml, which would have missed golangci-lint-action and the five docker actions. Signed-off-by: Date Huang <tjjh89017@hotmail.com>
1 parent f8f1899 commit 4033748

3 files changed

Lines changed: 21 additions & 12 deletions

File tree

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,12 @@ updates:
1111
- "/contrib/**"
1212
schedule:
1313
interval: "weekly"
14+
15+
# "/" only covers .github/workflows. The composite actions each need their own
16+
# directory, and that is where golangci-lint-action and the docker actions live.
17+
- package-ecosystem: "github-actions"
18+
directories:
19+
- "/"
20+
- "/.github/actions/**"
21+
schedule:
22+
interval: "weekly"

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
name: Codegen
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v6
17+
- uses: actions/checkout@v7
1818
- uses: actions/setup-go@v6
1919
with:
2020
go-version: ${{ env.GO_VERSION }}
@@ -30,7 +30,7 @@ jobs:
3030
name: Lint
3131
runs-on: ubuntu-latest
3232
steps:
33-
- uses: actions/checkout@v6
33+
- uses: actions/checkout@v7
3434
- name: Lint
3535
uses: ./.github/actions/lint
3636
with:
@@ -40,7 +40,7 @@ jobs:
4040
name: Test
4141
runs-on: ubuntu-latest
4242
steps:
43-
- uses: actions/checkout@v6
43+
- uses: actions/checkout@v7
4444
- name: Test
4545
uses: ./.github/actions/test
4646
with:
@@ -71,7 +71,7 @@ jobs:
7171
- os: freebsd
7272
variant: extra-min
7373
steps:
74-
- uses: actions/checkout@v6
74+
- uses: actions/checkout@v7
7575
- name: Build
7676
uses: ./.github/actions/build
7777
id: build
@@ -97,7 +97,7 @@ jobs:
9797
- lint
9898
- test
9999
steps:
100-
- uses: actions/checkout@v6
100+
- uses: actions/checkout@v7
101101
- name: Test and build
102102
uses: vmactions/freebsd-vm@v1
103103
with:
@@ -131,7 +131,7 @@ jobs:
131131
- os: freebsd
132132
arch: mipsle
133133
steps:
134-
- uses: actions/checkout@v6
134+
- uses: actions/checkout@v7
135135
- name: Build All Plugins
136136
uses: ./.github/actions/build-all-plugins
137137
id: build-plugins
@@ -153,7 +153,7 @@ jobs:
153153
- lint
154154
- test
155155
steps:
156-
- uses: actions/checkout@v6
156+
- uses: actions/checkout@v7
157157
- name: Build and Push Docker
158158
uses: ./.github/actions/docker
159159
with:

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Lint
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v6
16+
- uses: actions/checkout@v7
1717
- name: Lint
1818
uses: ./.github/actions/lint
1919
with:
@@ -23,7 +23,7 @@ jobs:
2323
name: Test
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@v6
26+
- uses: actions/checkout@v7
2727
- name: Test
2828
uses: ./.github/actions/test
2929
with:
@@ -56,7 +56,7 @@ jobs:
5656
- os: freebsd
5757
variant: extra-min
5858
steps:
59-
- uses: actions/checkout@v6
59+
- uses: actions/checkout@v7
6060
- name: tag
6161
id: tag
6262
run: echo "TAG=$(git describe --tags --dirty)" >> "$GITHUB_OUTPUT"
@@ -103,7 +103,7 @@ jobs:
103103
- os: freebsd
104104
arch: mipsle
105105
steps:
106-
- uses: actions/checkout@v6
106+
- uses: actions/checkout@v7
107107
- name: tag
108108
id: tag
109109
run: echo "TAG=$(git describe --tags --dirty)" >> "$GITHUB_OUTPUT"
@@ -141,7 +141,7 @@ jobs:
141141
- lint
142142
- test
143143
steps:
144-
- uses: actions/checkout@v6
144+
- uses: actions/checkout@v7
145145
- name: Build and Push Docker
146146
uses: ./.github/actions/docker
147147
with:

0 commit comments

Comments
 (0)