Skip to content

Commit 08d5f6e

Browse files
yaronfcursoragent
andcommitted
Pin Go toolchain patches and drive CI from go.mod.
Add toolchain go1.27.1, let Renovate open prompt toolchain PRs, and point setup-go at go.mod so CI follows the pinned patch. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 7c9b74f commit 08d5f6e

4 files changed

Lines changed: 55 additions & 14 deletions

File tree

‎.github/workflows/lint.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Install Go
1212
uses: actions/setup-go@v7
1313
with:
14-
go-version: '1.27'
14+
go-version-file: go.mod
1515
cache: false
1616
- name: golangci-lint
1717
uses: golangci/golangci-lint-action@v9

‎.github/workflows/test.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Install Go
1212
uses: actions/setup-go@v7
1313
with:
14-
go-version: '1.27'
14+
go-version-file: go.mod
1515
cache: false
1616
- name: Test
1717
run: go test ./...
@@ -26,7 +26,7 @@ jobs:
2626
- name: Install Go
2727
uses: actions/setup-go@v7
2828
with:
29-
go-version: '1.27'
29+
go-version-file: go.mod
3030
cache: false
3131
- name: Fuzz smoke
3232
# Short per-target budget. -fuzz is a regexp — use ^Name$ so names are not

‎go.mod‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ module github.com/yaronf/httpsign
22

33
go 1.27.0
44

5+
toolchain go1.27.1
6+
57
require (
68
github.com/dunglas/httpsfv v1.1.2
79
github.com/lestrrat-go/jwx/v4 v4.5.0

‎renovate.json‎

Lines changed: 50 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,46 +4,85 @@
44
"config:recommended",
55
":dependencyDashboard"
66
],
7-
"labels": ["dependencies"],
7+
"labels": [
8+
"dependencies"
9+
],
810
"prConcurrentLimit": 3,
911
"prHourlyLimit": 2,
10-
"postUpdateOptions": ["gomodTidy"],
12+
"postUpdateOptions": [
13+
"gomodTidy"
14+
],
1115
"packageRules": [
1216
{
1317
"description": "Group and automerge GitHub Actions (minor/patch/digest)",
14-
"matchManagers": ["github-actions"],
15-
"matchUpdateTypes": ["minor", "patch", "digest"],
18+
"matchManagers": [
19+
"github-actions"
20+
],
21+
"matchUpdateTypes": [
22+
"minor",
23+
"patch",
24+
"digest"
25+
],
1626
"groupName": "github-actions",
1727
"automerge": true,
1828
"automergeType": "pr",
1929
"platformAutomerge": true
2030
},
2131
{
2232
"description": "Automerge low-risk Go test deps (minor/patch)",
23-
"matchManagers": ["gomod"],
33+
"matchManagers": [
34+
"gomod"
35+
],
2436
"matchPackageNames": [
2537
"github.com/stretchr/testify",
2638
"github.com/sergi/go-diff"
2739
],
28-
"matchUpdateTypes": ["minor", "patch"],
40+
"matchUpdateTypes": [
41+
"minor",
42+
"patch"
43+
],
2944
"automerge": true,
3045
"automergeType": "pr",
3146
"platformAutomerge": true
3247
},
3348
{
3449
"description": "jwx majors require dashboard approval (API/crypto risk)",
35-
"matchManagers": ["gomod"],
36-
"matchUpdateTypes": ["major"],
50+
"matchManagers": [
51+
"gomod"
52+
],
53+
"matchUpdateTypes": [
54+
"major"
55+
],
3756
"dependencyDashboardApproval": true,
3857
"matchPackageNames": [
3958
"/^github\\.com/lestrrat-go/jwx/"
4059
]
4160
},
4261
{
43-
"description": "Do not bump the go directive automatically",
44-
"matchManagers": ["gomod"],
45-
"matchDepNames": ["go"],
62+
"description": "Do not bump the go (language) directive automatically",
63+
"matchManagers": [
64+
"gomod"
65+
],
66+
"matchDepTypes": [
67+
"golang"
68+
],
4669
"enabled": false
70+
},
71+
{
72+
"description": "Prompt Go toolchain patch PRs",
73+
"matchPackageNames": [
74+
"go"
75+
],
76+
"matchDepTypes": [
77+
"toolchain"
78+
],
79+
"matchUpdateTypes": [
80+
"patch"
81+
],
82+
"groupName": "go toolchain",
83+
"schedule": [
84+
"at any time"
85+
]
4786
}
4887
]
4988
}

0 commit comments

Comments
 (0)