Skip to content

Commit

Permalink
ci: Update govulncheck and linter (#197)
Browse files Browse the repository at this point in the history
* ci: Remove patch version of Go version in govulncheck workflow

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Use latest version of golangci-lint

Signed-off-by: Thane Thomson <connect@thanethomson.com>

---------

Signed-off-by: Thane Thomson <connect@thanethomson.com>
  • Loading branch information
thanethomson committed Jul 6, 2023
1 parent 6541513 commit 95d92c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
- uses: actions/setup-go@v4
with:
go-version: "1.20.3"
go-version: "1.20"
- uses: actions/checkout@v3
- uses: technote-space/get-diff-action@v6
with:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
- uses: actions/checkout@v3.2.0
- uses: golangci/golangci-lint-action@v3.6.0
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.51
version: latest
args: --timeout 10m
github-token: ${{ secrets.github_token }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ bench:
.PHONY: bench

lint:
golangci-lint run ./...
go run github.com/golangci/golangci-lint/cmd/golangci-lint@latest run
.PHONY: lint

clean:
Expand Down

0 comments on commit 95d92c0

Please sign in to comment.