Skip to content

Commit

Permalink
POS-2821: govulncheck CI and make command / bump golang
Browse files Browse the repository at this point in the history
  • Loading branch information
marcello33 committed Feb 7, 2025
1 parent 622f913 commit 85ed70a
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 28 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/govuln.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Govuln
on: [ push, pull_request ]

jobs:
govulncheck:
name: Run govulncheck
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: "1.23.6"
check-latest: true
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6
with:
PATTERNS: |
**/*.go
go.mod
go.sum
Makefile
- name: govulncheck
run: make vulncheck
if: "env.GIT_DIFF != ''"
3 changes: 1 addition & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,4 @@ issues:
- prealloc
max-issues-per-linter: 0
max-same-issues: 0
#new: true
new-from-rev: origin/master
new-from-rev: origin/develop
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ ifndef LINT_COMMAND
endif
golangci-lint run --config ./.golangci.yml

.PHONY: vulncheck

vulncheck:
@go run golang.org/x/vuln/cmd/govulncheck@latest ./...

#
# docker commands
#
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/maticnetwork/heimdall

go 1.23.2
go 1.23.6

require (
github.com/RichardKnop/machinery v1.10.6
Expand Down

0 comments on commit 85ed70a

Please sign in to comment.