diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 32d5d8e43..1a022606e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -24,7 +24,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: "1.26" + go-version-file: go.mod - name: Set up Node uses: actions/setup-node@v4 @@ -45,6 +45,11 @@ jobs: go build ./... go test ./... -count=1 + - name: Vulnerability scan + run: | + go install golang.org/x/vuln/cmd/govulncheck@latest + govulncheck ./... + # The dashboard suite runs in CI too, or it only ever runs when # someone remembers to; the Go steps above never touch it. - name: Dashboard tests diff --git a/Taskfile.yml b/Taskfile.yml index 8929fa5a9..831794087 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -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