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

ci: Update govulncheck task to use same version of go as project #49

Merged
merged 1 commit into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
fetch-depth: 0

- name: Install devbox
uses: jetify-com/devbox-install-action@v0.9.0
with:
work-dir: ${{ matrix.module }}
go-version-file: go.mod
check-latest: true
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 ./...
Loading