Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
ci: Update govulncheck task to use same version of go as project (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson committed Apr 11, 2024
1 parent 63e8bb7 commit e08e2ee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,15 @@ jobs:
module: [api, common, .]
fail-fast: false
steps:
- id: govulncheck
uses: golang/govulncheck-action@v1
- name: Checkout
uses: actions/checkout@v4
with:
work-dir: ${{ matrix.module }}
go-version-file: go.mod
check-latest: true
fetch-depth: 0

- name: Install devbox
uses: jetify-com/devbox-install-action@v0.9.0
with:
enable-cache: true

- id: govulncheck
run: devbox run -- make govulncheck.${{ matrix.module }}
2 changes: 1 addition & 1 deletion make/go.mk
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,4 @@ endif
.PHONY: ggovulncheck.%
govulncheck.%: ## Runs golangci-lint for a specific module
govulncheck.%: ; $(info $(M) running govulncheck on $* module)
$(if $(filter-out root,$*),cd $* && )govulncheck ./...
$(if $(filter-out root .,$*),cd $* && )govulncheck ./...

0 comments on commit e08e2ee

Please sign in to comment.