ci: make govulncheck findings blocking

Open
#11,361 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
github-actions, go
Domain
ci-cd, security

Research direction

Start by reading .github/workflows/govulncheck.yml and the existing required static-check job, then run a fresh govulncheck scan against the release artifacts. Determine how to clear or explicitly disposition each baseline finding; done means findings block the merge event once the baseline is empty, with the scanner pinned and its current scanner-failure handling preserved.

Written by the indexing model from the issue text.

Description

The dedicated vulnerability workflow currently scans release binaries on a weekly schedule and by manual dispatch. It treats govulncheck exit code 3 as advisory while the existing vulnerability baseline remains.

While updating #10836, we tested adding govulncheck to the required static-check job. The scan reported 13 reachable vulnerabilities in the current Go standard library and module graph, so enabling it there would fail every PR regardless of what the PR changed. The current report includes standard-library findings fixed after Go 1.26.8 and GO-2026-6443 in google.golang.org/grpc.

We should clear or explicitly disposition the baseline, then make vulnerability findings blocking in CI. The final setup should:

  • scan the same release artifacts we ship;
  • run on the event where it can gate a merge, in addition to the weekly schedule;
  • fail on govulncheck exit code 3 once the baseline is empty;
  • keep the scanner version pinned and preserve its current error handling for scanner failures.

The vulnerability database changes over time, so the baseline needs a fresh scan when this work starts.

Dominant language
Go
Stars
8.2k
Forks
2.3k
Avg merge
1d 11h
Merged PRs (30d)
103

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lightningnetwork/lnd

All issues in lightningnetwork/lnd

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.