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

Commit e08e2ee

Browse files
committed
ci: Update govulncheck task to use same version of go as project (#49)
1 parent 63e8bb7 commit e08e2ee

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/checks.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,15 @@ jobs:
229229
module: [api, common, .]
230230
fail-fast: false
231231
steps:
232-
- id: govulncheck
233-
uses: golang/govulncheck-action@v1
232+
- name: Checkout
233+
uses: actions/checkout@v4
234234
with:
235-
work-dir: ${{ matrix.module }}
236-
go-version-file: go.mod
237-
check-latest: true
235+
fetch-depth: 0
236+
237+
- name: Install devbox
238+
uses: jetify-com/[email protected]
239+
with:
240+
enable-cache: true
241+
242+
- id: govulncheck
243+
run: devbox run -- make govulncheck.${{ matrix.module }}

make/go.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,4 +212,4 @@ endif
212212
.PHONY: ggovulncheck.%
213213
govulncheck.%: ## Runs golangci-lint for a specific module
214214
govulncheck.%: ; $(info $(M) running govulncheck on $* module)
215-
$(if $(filter-out root,$*),cd $* && )govulncheck ./...
215+
$(if $(filter-out root .,$*),cd $* && )govulncheck ./...

0 commit comments

Comments
 (0)