Skip to content

Commit b282d4e

Browse files
committed
ubuntu-20.04 is no longer supported
1 parent 2ab3a12 commit b282d4e

9 files changed

+15
-18
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ test.yaml:5:11: character '\' is invalid for branch and tag names. only special
6060
|
6161
5 | - 'v\d+'
6262
| ^~~~
63-
test.yaml:10:28: label "linux-latest" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]
63+
test.yaml:10:28: label "linux-latest" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]
6464
|
6565
10 | os: [macos-latest, linux-latest]
6666
| ^~~~~~~~~~~~~

docs/checks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,15 +1634,15 @@ jobs:
16341634
Output:
16351635
16361636
```
1637-
test.yaml:10:13: label "linux-latest" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]
1637+
test.yaml:10:13: label "linux-latest" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]
16381638
|
16391639
10 | - linux-latest
16401640
| ^~~~~~~~~~~~
1641-
test.yaml:16:13: label "gpu" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]
1641+
test.yaml:16:13: label "gpu" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]
16421642
|
16431643
16 | - gpu
16441644
| ^~~
1645-
test.yaml:23:14: label "macos-10.13" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]
1645+
test.yaml:23:14: label "macos-10.13" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]
16461646
|
16471647
23 | runs-on: macos-10.13
16481648
| ^~~~~~~~~~~

rule_runner_label.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ type runnerOSCompat uint
99

1010
const (
1111
compatInvalid = 0
12-
compatUbuntu2004 runnerOSCompat = 1 << iota
13-
compatUbuntu2204
12+
compatUbuntu2204 runnerOSCompat = 1 << iota
1413
compatUbuntu2404
1514
compatMacOS130
1615
compatMacOS130L
@@ -41,7 +40,6 @@ var allGitHubHostedRunnerLabels = []string{
4140
"ubuntu-24.04-arm",
4241
"ubuntu-22.04",
4342
"ubuntu-22.04-arm",
44-
"ubuntu-20.04",
4543
"macos-latest",
4644
"macos-latest-xl",
4745
"macos-latest-xlarge",
@@ -83,7 +81,6 @@ var defaultRunnerOSCompats = map[string]runnerOSCompat{
8381
"ubuntu-24.04-arm": compatUbuntu2404,
8482
"ubuntu-22.04": compatUbuntu2204,
8583
"ubuntu-22.04-arm": compatUbuntu2204,
86-
"ubuntu-20.04": compatUbuntu2004,
8784
"macos-latest-xl": compatMacOS140XL,
8885
"macos-latest-xlarge": compatMacOS140XL,
8986
"macos-latest-large": compatMacOS140L,
@@ -104,7 +101,7 @@ var defaultRunnerOSCompats = map[string]runnerOSCompat{
104101
"windows-2025": compatWindows2025,
105102
"windows-2022": compatWindows2022,
106103
"windows-2019": compatWindows2019,
107-
"linux": compatUbuntu2404 | compatUbuntu2204 | compatUbuntu2004, // Note: "linux" does not always indicate Ubuntu. It might be Fedora or Arch or ...
104+
"linux": compatUbuntu2404 | compatUbuntu2204, // Note: "linux" does not always indicate Ubuntu. It might be Fedora or Arch or ...
108105
"macos": compatMacOS150 | compatMacOS150L | compatMacOS150XL | compatMacOS140 | compatMacOS140L | compatMacOS140XL | compatMacOS130 | compatMacOS130L | compatMacOS130XL,
109106
"windows": compatWindows2022 | compatWindows2019,
110107
}

rule_runner_label_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func TestRuleRunnerLabelCheckLabels(t *testing.T) {
1616
// Normal cases
1717
{
1818
what: "simple GH-hosted Linux runner label",
19-
labels: []string{"ubuntu-20.04"},
19+
labels: []string{"ubuntu-24.04"},
2020
},
2121
{
2222
what: "simple GH-hosted Windows runner label",
@@ -52,7 +52,7 @@ func TestRuleRunnerLabelCheckLabels(t *testing.T) {
5252
},
5353
{
5454
what: "self-hosted runner with GH-hosted runner label",
55-
labels: []string{"self-hosted", "ubuntu-20.04"},
55+
labels: []string{"self-hosted", "ubuntu-24.04"},
5656
},
5757
{
5858
what: "larger Ubuntu runner",
@@ -223,8 +223,8 @@ func TestRuleRunnerLabelCheckLabels(t *testing.T) {
223223
},
224224
{
225225
what: "Linux labels conflict",
226-
labels: []string{"ubuntu-latest", "ubuntu-20.04"},
227-
errs: []string{`label "ubuntu-20.04" conflicts with label "ubuntu-latest"`},
226+
labels: []string{"ubuntu-latest", "ubuntu-24.04"},
227+
errs: []string{`label "ubuntu-24.04" conflicts with label "ubuntu-latest"`},
228228
},
229229
{
230230
what: "macOS labels conflict",

testdata/err/inputs_without_workflow_call_event.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ on: push
22

33
jobs:
44
test:
5-
runs-on: ubuntu-20.04
5+
runs-on: ubuntu-24.04
66
steps:
77
- run: echo ${{ inputs.some_input }}

testdata/err/workflow_call_event.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ on:
5151

5252
jobs:
5353
test:
54-
runs-on: ubuntu-20.04
54+
runs-on: ubuntu-24.04
5555
steps:
5656
- run: echo ${{ inputs.unknown_input }}

testdata/err/workflow_call_secrets.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
test:
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-24.04
1010
steps:
1111
# OK
1212
- run: echo ${{ secrets.secret0 }}

testdata/examples/workflow_inputs_secrets_types.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
jobs:
1515
test:
16-
runs-on: ubuntu-20.04
16+
runs-on: ubuntu-24.04
1717
steps:
1818
- name: Send data
1919
# ERROR: uri is typo of url

testdata/ok/workflow_call_event.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ on:
2626

2727
jobs:
2828
test:
29-
runs-on: ubuntu-20.04
29+
runs-on: ubuntu-24.04
3030
steps:
3131
- run: |
3232
echo ${{ inputs.input0 }}

0 commit comments

Comments
 (0)