ci: add comprehensive GitHub Actions CI/CD pipeline#278
Merged
Conversation
Replace the existing build and release workflows with a modern CI/CD setup including linting (golangci-lint v2), tests with coverage, govulncheck, CodeQL analysis, and a manual release pipeline powered by GoReleaser with multi-arch Docker images on GHCR. - Add ci.yml: lint, test, vulncheck, cross-platform build matrix - Add codeql.yml: weekly + push/PR security analysis - Add .golangci.yml: govet, staticcheck, ineffassign, unused - Add .goreleaser.yml: 13-platform builds, GHCR multi-arch images - Replace release.yml: manual workflow_dispatch with version bump - Update dependabot.yml: add github-actions ecosystem - Fix Dockerfile: inject version via ldflags - Simplify Makefile: delegate dist/release to GoReleaser - Remove build.yml: superseded by ci.yml
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
Fixes 5 govulncheck findings: - GO-2026-4947: crypto/x509 unexpected work during chain building - GO-2026-4946: crypto/x509 inefficient policy validation - GO-2026-4870: crypto/tls unauthenticated TLS 1.3 KeyUpdate DoS - GO-2026-4602: os FileInfo can escape from a Root - GO-2026-4601: net/url incorrect parsing of IPv6 host literals
This was referenced Apr 8, 2026
Closed
Closed
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace the existing build and release workflows with a modern, best-practices CI/CD setup.
ci.yml): golangci-lint v2, tests with race detection + coverage, govulncheck, cross-platform build matrix (linux/darwin × amd64/arm64)codeql.yml): security analysis on push, PR, and weekly schedulerelease.yml): manualworkflow_dispatchwith patch/minor/major dropdown — auto-bumps version in README.md and examples, commits, tags, builds multi-arch Docker images (amd64+arm64) to GHCR via GoReleaser.goreleaser.yml): 13 platform/arch builds + 3 alpine builds, tar.gz archives, checksums, changelog with conventional commit filtering.golangci.yml): golangci-lint v2 config with govet, staticcheck, ineffassign, unused (errcheck disabled pending fix of 16 pre-existing violations)github-actionsecosystem alongside existinggomod-ldflagssodockerize --versionworks in containersFiles changed
.github/workflows/ci.yml.github/workflows/codeql.yml.golangci.yml.goreleaser.ymlDockerfile.goreleaser.github/workflows/release.yml.github/dependabot.ymlDockerfileMakefile.github/workflows/build.ymlValidation
golangci-lint run ./...— 0 issuesgo test -v -race ./...— 11/11 passgoreleaser check— config validatedgo build— compiles cleanly