Skip to content

Commit 733bcd2

Browse files
ci: migrate runs-on to Twilio runner labels + SHA-pin actions
- Target ubuntu-latest-large for the Test matrix and golangci-lint, per guidance from Charlotte St. John (segmentio/stats is public, so the Twilio self-hosted pool doesn't apply - see PEA-901). - SHA-pin actions/checkout (v7.0.1) and actions/setup-go (v7.0.0). - Run golangci-lint (bumped to v2.12.2) via `go install` + a plain run: step instead of the golangci/golangci-lint-action marketplace action, since that action isn't on this repo's Actions allowlist (only github-owned actions are permitted) and was startup-failing regardless of runs-on.
1 parent 7e7070d commit 733bcd2

2 files changed

Lines changed: 13 additions & 9 deletions

File tree

.github/workflows/go.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212
- 'oldstable'
1313
- 'stable'
1414
label:
15-
- ubuntu-latest
15+
- ubuntu-latest-large
1616

1717
runs-on: ${{ matrix.label }}
1818

1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2121

2222
- name: Setup Go (${{ matrix.go }})
23-
uses: actions/setup-go@v5
23+
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
2424
with:
2525
go-version: ${{ matrix.go }}
2626

.github/workflows/golangci-lint.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,19 @@ name: golangci-lint
1616
jobs:
1717
lint:
1818
name: lint
19-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-latest-large
2020
steps:
21-
- uses: actions/setup-go@v5
21+
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
2222
with:
2323
go-version: '>=1.24'
2424

25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
26+
27+
- name: Install golangci-lint
28+
# https://github.com/golangci/golangci-lint/tags
29+
run: |
30+
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.12.2
31+
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
2632
2733
- name: golangci-lint
28-
uses: golangci/golangci-lint-action@v8
29-
with:
30-
version: v2.1.6
34+
run: golangci-lint run

0 commit comments

Comments
 (0)