Skip to content

Commit 98a73ff

Browse files
committed
chore: CI and linter update
Update GitHub actions to latest versions. Update golangci-lint to latest version + fix reported issue.
1 parent 0e2d512 commit 98a73ff

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/actions/govulncheck/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ inputs:
1111
runs:
1212
using: "composite"
1313
steps:
14-
- uses: actions/setup-go@v5.0.0
14+
- uses: actions/setup-go@v5
1515
with:
1616
go-version: ${{ inputs.go-version-input }}
1717
check-latest: false

.github/workflows/check.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ jobs:
99
- name: Get sources
1010
uses: actions/checkout@v4
1111

12-
- name: Set up Go 1.21
13-
uses: actions/setup-go@v3
12+
- name: Set up Go 1.23.3
13+
uses: actions/setup-go@v5
1414
with:
15-
go-version: '1.21'
15+
go-version: '1.23.3'
1616

17-
- name: Run golsangci-lint
18-
uses: golangci/golangci-lint-action@v3
17+
- name: Run golangci-lint
18+
uses: golangci/golangci-lint-action@v6
1919
with:
20-
version: v1.57.2
20+
version: v1.62.0
2121
args: --timeout=180s
2222
skip-cache: true
2323

@@ -30,6 +30,6 @@ jobs:
3030
- name: Run govulncheck
3131
uses: ./.github/actions/govulncheck
3232
with:
33-
go-version-input: 1.21
33+
go-version-input: 1.23.3
3434
go-package: ./...
3535

contact_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ func (c *Contact) SetSettings(kr *crypto.KeyRing, email string, cardType CardTyp
263263
}
264264

265265
// KEY
266-
if settings.Keys != nil && len(settings.Keys) > 0 {
266+
if len(settings.Keys) > 0 {
267267
var keys = ""
268268
for i, key := range settings.Keys {
269269
if i > 0 {

0 commit comments

Comments
 (0)