Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update golangci-lint. #156

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/govulncheck/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/setup-go@v5.0.0
- uses: actions/setup-go@v5
with:
go-version: ${{ inputs.go-version-input }}
check-latest: false
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
- name: Get sources
uses: actions/checkout@v4

- name: Set up Go 1.21
uses: actions/setup-go@v3
- name: Set up Go 1.23.3
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.23.3'

- name: Run golsangci-lint
uses: golangci/golangci-lint-action@v3
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.57.2
version: v1.62.0
args: --timeout=180s
skip-cache: true

Expand All @@ -30,6 +30,6 @@ jobs:
- name: Run govulncheck
uses: ./.github/actions/govulncheck
with:
go-version-input: 1.21
go-version-input: 1.23.3
go-package: ./...

2 changes: 1 addition & 1 deletion contact_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func (c *Contact) SetSettings(kr *crypto.KeyRing, email string, cardType CardTyp
}

// KEY
if settings.Keys != nil && len(settings.Keys) > 0 {
if len(settings.Keys) > 0 {
var keys = ""
for i, key := range settings.Keys {
if i > 0 {
Expand Down