Repository navigation
Build with Go 1.27, add govulncheck and Dependabot - #268
Conversation
|
Sorry @yourconscience, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 2 days and 23 hours by commenting |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Reviewer's GuideConfigurationUpgrade CI and release builds to Go 1.27, and update golangci-lint so it can read Go 1.27 export data.
Add a scheduled and event-triggered govulncheck workflow for the root module.
Configure weekly, grouped Dependabot updates with a three-day cooldown for Go modules and GitHub Actions.
DocumentationDocument the Go 1.27 release-build change and its security rationale in the upgrading guide.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
# Conflicts: # docs/upgrading.md
What and why
The repository had no dependency or vulnerability checks, and releases were built with Go 1.25, which no longer gets security fixes.
govulncheck -mode=binaryon the 2.7.0 release binary (Go 1.25.14) reports 14 standard-library vulnerabilities, all fixed only in Go 1.26.9 or later. A source scan under Go 1.27.4 reports none.release.ymlalso setscheck-latest, so a release picks up the newest 1.27 patch.go.modstays atgo 1.25.0.Vulnerabilitiesworkflow. Runsgovulncheck1.9.0 on the root module on every push tomain, every pull request, and daily at 05:23 UTC. The two modules undertools/are not scanned: they do not ship to users.Turned on in the repository settings, outside this diff: Dependabot alerts, secret scanning, push protection, and CodeQL default setup.
How I checked it
govulncheck1.9.0 on the installed 2.7.0 binary: 14 findings. On this branch under Go 1.27.4:No vulnerabilities found.GOTOOLCHAIN=go1.27.4 go vet ./...andgo test ./...pass;sh scripts/release_test.shpasses.The
cooldown,directoriesandgroupskeys are checked against GitHub's Dependabot options reference.Not checked: a release build under Go 1.27 with goreleaser, and Dependabot reading this config. Both run only after merge.
go test ./...andgo vet ./...passI can explain this change without an AI tool
Summary by Sourcery
Modernize Go build tooling and add automated dependency and vulnerability monitoring.
New Features:
Enhancements:
CI:
Documentation: