Skip to content

Commit dd408ac

Browse files
authored
Update runners to ubuntu-22.04 (#739)
Updates runners to ubuntu-22.04 and aligns workflows using ubuntu-latest
1 parent 6aaefb3 commit dd408ac

File tree

6 files changed

+43
-44
lines changed

6 files changed

+43
-44
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ env:
3030
jobs:
3131
vars:
3232
name: Checks and variables
33-
runs-on: ubuntu-20.04
33+
runs-on: ubuntu-22.04
3434
outputs:
3535
go_path: ${{ steps.vars.outputs.go_path }}
3636
steps:
@@ -51,7 +51,7 @@ jobs:
5151

5252
unit-tests:
5353
name: Unit Tests
54-
runs-on: ubuntu-20.04
54+
runs-on: ubuntu-22.04
5555
needs: vars
5656
steps:
5757
- name: Checkout Repository
@@ -74,7 +74,7 @@ jobs:
7474

7575
njs-unit-tests:
7676
name: NJS Unit Tests
77-
runs-on: ubuntu-20.04
77+
runs-on: ubuntu-22.04
7878
needs: vars
7979
steps:
8080
- name: Checkout Repository
@@ -88,7 +88,7 @@ jobs:
8888

8989
release:
9090
name: Release
91-
runs-on: ubuntu-20.04
91+
runs-on: ubuntu-22.04
9292
needs: [unit-tests, njs-unit-tests]
9393
if: ${{ github.event_name == 'push' && github.ref != 'refs/heads/main' }}
9494
steps:
@@ -108,7 +108,7 @@ jobs:
108108
109109
binary:
110110
name: Build Binary
111-
runs-on: ubuntu-20.04
111+
runs-on: ubuntu-22.04
112112
needs: vars
113113
steps:
114114
- name: Checkout Repository
@@ -146,7 +146,7 @@ jobs:
146146

147147
build:
148148
name: Build Image
149-
runs-on: ubuntu-20.04
149+
runs-on: ubuntu-22.04
150150
needs: [vars, binary]
151151
steps:
152152
- name: Checkout Repository

.github/workflows/codeql-analysis.yml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ on:
1111
- main
1212
- release-*
1313
schedule:
14-
- cron: '39 13 * * 6'
14+
- cron: "39 13 * * 6"
1515

1616
concurrency:
1717
group: ${{ github.ref_name }}-codeql
1818
cancel-in-progress: true
1919

20-
permissions: # added using https://github.com/step-security/secure-workflows
20+
permissions:
2121
contents: read
2222

2323
jobs:
2424
analyze:
2525
name: Analyze
26-
runs-on: ubuntu-latest
26+
runs-on: ubuntu-22.04
2727
permissions:
2828
actions: read
2929
contents: read
@@ -32,39 +32,39 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
language: [ 'go', 'javascript' ]
35+
language: ["go", "javascript"]
3636
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
3737
# Learn more about CodeQL language support at https://git.io/codeql-language-support
3838

3939
steps:
40-
- name: Checkout repository
41-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
40+
- name: Checkout repository
41+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
4242

43-
# Initializes the CodeQL tools for scanning.
44-
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
46-
with:
47-
languages: ${{ matrix.language }}
48-
# If you wish to specify custom queries, you can do so here or in a config file.
49-
# By default, queries listed here will override any specified in a config file.
50-
# Prefix the list here with "+" to use these queries and those in the config file.
51-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5252

53-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54-
# If this step fails, then you should remove it and run the build manually (see below)
55-
- name: Autobuild
56-
uses: github/codeql-action/autobuild@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
53+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54+
# If this step fails, then you should remove it and run the build manually (see below)
55+
- name: Autobuild
56+
uses: github/codeql-action/autobuild@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
5757

58-
# ℹ️ Command-line programs to run using the OS shell.
59-
# 📚 https://git.io/JvXDl
58+
# ℹ️ Command-line programs to run using the OS shell.
59+
# 📚 https://git.io/JvXDl
6060

61-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62-
# and modify them (or add more) to build your code if your project
63-
# uses a compiled language
61+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62+
# and modify them (or add more) to build your code if your project
63+
# uses a compiled language
6464

65-
#- run: |
66-
# make bootstrap
67-
# make release
65+
#- run: |
66+
# make bootstrap
67+
# make release
6868

69-
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
69+
- name: Perform CodeQL Analysis
70+
uses: github/codeql-action/analyze@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4

.github/workflows/fossa.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ concurrency:
99
group: ${{ github.ref_name }}-fossa
1010
cancel-in-progress: true
1111

12-
permissions: # added using https://github.com/step-security/secure-workflows
12+
permissions:
1313
contents: read
1414

1515
jobs:
1616
scan:
1717
name: Fossa
18-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-22.04
1919
steps:
2020
- name: Checkout Repository
2121
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
permissions:
1111
contents: read
1212
pull-requests: write
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04
1414
steps:
1515
- uses: actions/labeler@4f052778de9a9b80cb16cfb9079b02287285a4cb # v5.0.0-alpha.1
1616
with:

.github/workflows/lint.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ concurrency:
2121
cancel-in-progress: true
2222

2323
jobs:
24-
2524
lint:
2625
name: Lint
27-
runs-on: ubuntu-20.04
26+
runs-on: ubuntu-22.04
2827
steps:
2928
- name: Checkout Repository
3029
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
@@ -40,7 +39,7 @@ jobs:
4039

4140
njs-lint:
4241
name: NJS Lint
43-
runs-on: ubuntu-20.04
42+
runs-on: ubuntu-22.04
4443
steps:
4544
- name: Checkout Repository
4645
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3

.github/workflows/scorecards.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ on:
33
# Only the default branch is supported.
44
branch_protection_rule:
55
schedule:
6-
- cron: '27 5 * * 0'
6+
- cron: "27 5 * * 0"
77
push:
8-
branches: [ "main" ]
8+
branches: ["main"]
99

1010
# Declare default permissions as read only.
1111
permissions: read-all
1212

1313
jobs:
1414
analysis:
1515
name: Scorecards analysis
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-22.04
1717
permissions:
1818
# Needed to upload the results to code-scanning dashboard.
1919
security-events: write

0 commit comments

Comments
 (0)