Skip to content

Commit cc33682

Browse files
authored
ci: pin runs-on to ubuntu-24.04 and actions by SHA (#377)
ubuntu-latest moves to Ubuntu 26 on 2026-10-19, which can break builds without warning. Every GitHub-hosted job now runs on ubuntu-24.04 (self-hosted groups and the arm64 runner are unchanged), and every third-party action is pinned by full commit SHA with a version comment. Actions still on the Node 20 runtime are bumped to their current SHA-pinned release (Node 24); actions already past Node 20 are pinned at their current major. Refs CryptOS-PKI/.github#28 Signed-off-by: Bugs5382 <12115015+Bugs5382@users.noreply.github.com> Co-authored-by: Bugs5382 <12115015+Bugs5382@users.noreply.github.com>
1 parent 711f61f commit cc33682

12 files changed

Lines changed: 36 additions & 36 deletions

‎.github/workflows/action-lint.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
actionlint:
2323
name: 🧹 Actionlint
2424
if: github.event.pull_request.draft != true
25-
runs-on: ubuntu-latest
25+
runs-on: ubuntu-24.04
2626
timeout-minutes: 10
2727
steps:
2828
- name: 📥 Checkout
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3030
- name: 🐹 Setup Go
31-
uses: actions/setup-go@v5
31+
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
3232
with:
3333
go-version: "stable"
3434
- name: 🧹 Run actionlint

‎.github/workflows/ci-go.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ jobs:
3434
go-validation:
3535
name: Go validation (format, lint, vet, test, build)
3636
if: github.event.pull_request.draft != true
37-
runs-on: ubuntu-latest
37+
runs-on: ubuntu-24.04
3838
timeout-minutes: 20
3939
steps:
4040
- name: Checkout
41-
uses: actions/checkout@v4
41+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4242

4343
- name: Set up Go
44-
uses: actions/setup-go@v5
44+
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
4545
with:
4646
go-version-file: go.mod
4747
cache: true

‎.github/workflows/ci-kind-acme.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,20 @@ jobs:
3232
kind-acme:
3333
name: cert-manager gets a CryptOS certificate over ACME
3434
if: github.event.pull_request.draft != true
35-
runs-on: ubuntu-latest
35+
runs-on: ubuntu-24.04
3636
timeout-minutes: 25
3737
steps:
3838
- name: Checkout
39-
uses: actions/checkout@v4
39+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4040

4141
- name: Set up Go
42-
uses: actions/setup-go@v5
42+
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
4343
with:
4444
go-version-file: go.mod
4545
cache: true
4646

4747
- name: Cache kind, kubectl and manifests
48-
uses: actions/cache@v4
48+
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
4949
with:
5050
path: ~/.cache/cryptos-e2e-kind
5151
key: kind-acme-${{ runner.arch }}-${{ hashFiles('test/kind/versions.env') }}

‎.github/workflows/cron-cleanup-runs.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ concurrency:
2828
jobs:
2929
cleanup:
3030
name: Prune old and failed runs
31-
runs-on: ubuntu-latest
31+
runs-on: ubuntu-24.04
3232
timeout-minutes: 10
3333
env:
3434
GH_TOKEN: ${{ github.token }}

‎.github/workflows/job-dco.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
dco:
2626
name: ✍️ DCO sign-off
2727
if: github.event.pull_request.draft == false
28-
runs-on: ubuntu-latest
28+
runs-on: ubuntu-24.04
2929
timeout-minutes: 5
3030
steps:
3131
- name: ✍️ Check every commit is signed off by its author

‎.github/workflows/job-gitleaks.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
gitleaks:
2525
name: 🔒 Gitleaks (secret scan)
2626
if: github.event.pull_request.draft != true
27-
runs-on: ubuntu-latest
27+
runs-on: ubuntu-24.04
2828
timeout-minutes: 10
2929
steps:
3030
- name: Checkout
31-
uses: actions/checkout@v6
31+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
3232
with:
3333
fetch-depth: 0
3434
- name: Install gitleaks

‎.github/workflows/job-golic.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ jobs:
2121
golic:
2222
name: 🔏 License headers
2323
if: github.event.pull_request.draft != true
24-
runs-on: ubuntu-latest
24+
runs-on: ubuntu-24.04
2525
timeout-minutes: 10
2626
steps:
2727
- name: Checkout
28-
uses: actions/checkout@v6
28+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
2929
- name: Setup Go
30-
uses: actions/setup-go@v6
30+
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
3131
with:
3232
go-version: 'stable'
3333
- name: Install Task
34-
uses: arduino/setup-task@v2
34+
uses: arduino/setup-task@c0bc642852239c2689f73f4ea6459c29405f3c52 # v3.0.0
3535
with:
3636
# Pin an exact, existing go-task version. setup-task's `3.x` range
3737
# resolution mis-computes a nonexistent version (observed: v3.52.0 ->

‎.github/workflows/job-label-checker.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
autolabel:
2828
name: Autolabel
2929
if: github.event.pull_request.draft != true
30-
runs-on: ubuntu-latest
30+
runs-on: ubuntu-24.04
3131
timeout-minutes: 10
3232
steps:
3333
# Map the conventional-commit prefix in the PR title to a categorizing
@@ -65,7 +65,7 @@ jobs:
6565
# Run even if autolabel was skipped/failed; the label may already be present
6666
# from the PR title.
6767
if: always() && github.event.pull_request.draft != true
68-
runs-on: ubuntu-latest
68+
runs-on: ubuntu-24.04
6969
timeout-minutes: 10
7070
permissions:
7171
pull-requests: read

‎.github/workflows/job-label-sync.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ permissions:
1313
jobs:
1414
labeler:
1515
name: Sync labels
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-24.04
1717
timeout-minutes: 10
1818
steps:
19-
- uses: actions/checkout@v4
20-
- uses: crazy-max/ghaction-github-labeler@v5
19+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
20+
- uses: crazy-max/ghaction-github-labeler@548a7c3603594ec17c819e1239f281a3b801ab4d # v6.0.0
2121
with:
2222
yaml-file: .github/labels.yml
2323
skip-delete: false

‎.github/workflows/job-license-check.yaml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
npm:
2121
name: npm dependency licenses
2222
if: github.event.pull_request.draft != true
23-
runs-on: ubuntu-latest
23+
runs-on: ubuntu-24.04
2424
timeout-minutes: 15
2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2828

2929
- name: Detect package.json
3030
id: manifest
@@ -33,7 +33,7 @@ jobs:
3333
3434
- name: Setup Node
3535
if: steps.manifest.outputs.found == 'true'
36-
uses: actions/setup-node@v4
36+
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
3737
with:
3838
node-version: lts/*
3939

@@ -51,11 +51,11 @@ jobs:
5151
go:
5252
name: Go dependency licenses
5353
if: github.event.pull_request.draft != true
54-
runs-on: ubuntu-latest
54+
runs-on: ubuntu-24.04
5555
timeout-minutes: 15
5656
steps:
5757
- name: Checkout
58-
uses: actions/checkout@v4
58+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
5959

6060
- name: Detect go.mod
6161
id: manifest
@@ -64,7 +64,7 @@ jobs:
6464
6565
- name: Setup Go
6666
if: steps.manifest.outputs.found == 'true'
67-
uses: actions/setup-go@v5
67+
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
6868
with:
6969
go-version: 'stable'
7070

0 commit comments

Comments
 (0)