Skip to content

Commit

Permalink
chore: CI and linter update
Browse files Browse the repository at this point in the history
Update GitHub actions to latest versions.
Update golangci-lint to latest version + fix reported issue.
  • Loading branch information
xmichelo committed Dec 2, 2024
1 parent 0e2d512 commit 98a73ff
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
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

0 comments on commit 98a73ff

Please sign in to comment.