chore(ci): pin Go version from go.mod and add a govulncheck step
CI's go-version was a floating "1.26" independent of go.mod, so it could silently drift from the toolchain the project actually builds with. Switched to go-version-file: go.mod as the single source of truth, and added `task vuln` (govulncheck) plus a CI scan step -- kept out of `task check` since it needs network access to the vuln DB.
This commit is contained in:
1 parent
e76f7d5ff0
commit
d96f403d93
2 files changed
+11
-1
No files matched your search
@@ -25,6 +25,11 @@ tasks:
|
||||
cmds:
|
||||
- golangci-lint run ./...
|
||||
|
||||
vuln:
|
||||
desc: "Scan for known stdlib/dependency CVEs (govulncheck). Not part of task check: it needs network access to the vuln DB and is not build/test-blocking; run it explicitly or in CI."
|
||||
cmds:
|
||||
- govulncheck ./...
|
||||
|
||||
ui:
|
||||
desc: Build the dashboard into ui/dist (committed; the Go build embeds it)
|
||||
dir: ui
|
||||
|
||||
Reference in new issue
Block a user