Skip to content

Commit 2660dd1

Browse files
committed
workflows: lock Ubuntu runner to ubuntu-22.04
Lock the Ubuntu runner to ubuntu-22.04 to avoid accidental updates [1] and increase reproducibility. [1]: actions/runner-images#10636
1 parent 90c106c commit 2660dd1

22 files changed

Lines changed: 27 additions & 27 deletions

.github/workflows/backport.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
backport:
1515
name: Backport Pull Request
1616
if: github.repository_owner == 'NixOS' && github.event.pull_request.merged == true && (github.event_name != 'labeled' || startsWith('backport', github.event.label.name))
17-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-22.04
1818
steps:
1919
# Use a GitHub App to create the PR so that CI gets triggered
2020
# The App is scoped to Repository > Contents and Pull Requests: write for Nixpkgs

.github/workflows/basic-eval.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ permissions:
1616
jobs:
1717
tests:
1818
name: basic-eval-checks
19-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-22.04
2020
# we don't limit this action to only NixOS repo since the checks are cheap and useful developer feedback
2121
steps:
2222
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

.github/workflows/check-cherry-picks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions: {}
1111
jobs:
1212
check:
1313
name: cherry-pick-check
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-22.04
1515
if: github.repository_owner == 'NixOS'
1616
steps:
1717
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

.github/workflows/check-maintainers-sorted.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010
jobs:
1111
nixos:
1212
name: maintainer-list-check
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04
1414
if: github.repository_owner == 'NixOS'
1515
steps:
1616
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

.github/workflows/check-nix-format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
nixos:
2020
name: nixfmt-check
21-
runs-on: ubuntu-latest
21+
runs-on: ubuntu-22.04
2222
needs: get-merge-commit
2323
if: "needs.get-merge-commit.outputs.mergedSha && !contains(github.event.pull_request.title, '[skip treewide]')"
2424
steps:

.github/workflows/check-nixf-tidy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
jobs:
1010
nixos:
1111
name: exp-nixf-tidy-check
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-22.04
1313
if: "!contains(github.event.pull_request.title, '[skip treewide]')"
1414
steps:
1515
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

.github/workflows/check-shell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions: {}
1111
jobs:
1212
x86_64-linux:
1313
name: shell-check-x86_64-linux
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-22.04
1515
steps:
1616
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1717
with:

.github/workflows/codeowners-v2.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
# Check that code owners is valid
4242
check:
4343
name: Check
44-
runs-on: ubuntu-latest
44+
runs-on: ubuntu-22.04
4545
needs: get-merge-commit
4646
if: needs.get-merge-commit.outputs.mergedSha
4747
steps:
@@ -88,7 +88,7 @@ jobs:
8888
# Request reviews from code owners
8989
request:
9090
name: Request
91-
runs-on: ubuntu-latest
91+
runs-on: ubuntu-22.04
9292
steps:
9393
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
9494

.github/workflows/editorconfig-v2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
tests:
1818
name: editorconfig-check
19-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-22.04
2020
needs: get-merge-commit
2121
if: "needs.get-merge-commit.outputs.mergedSha && github.repository_owner == 'NixOS' && !contains(github.event.pull_request.title, '[skip treewide]')"
2222
steps:

.github/workflows/eval-lib-tests.yml

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

1414
nixpkgs-lib-tests:
1515
name: nixpkgs-lib-tests
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-22.04
1717
needs: get-merge-commit
1818
if: needs.get-merge-commit.outputs.mergedSha
1919
steps:

0 commit comments

Comments
 (0)