Go CI with GitHub Actions
Sets up GitHub Actions for Go with tests, linting, security scans and releases, so every change is checked.
What we improved
SKILL.md now carries the working YAML instead of only pointing to asset files: the full test workflow, the lint job with a golangci-lint v2 starter config, the govulncheck and gosec jobs, Dependabot auto-merge, the release job and the GoRel
Improved by YourAISkill from the original by samber, under its MIT licence. The download includes the author's licence and a CHANGES.md listing every change. Both Claude reviews read the improved version.
Claude's review
8/10 Ready Go CI workflows and configs (race tests, golangci-lint v2, govulncheck, GoReleaser, safe Dependabot auto-merge) with sound security guidance; version pins need checking.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
GitHub Actions CI/CD pipeline configuration for Golang projects — workflow files for test, lint, SAST, coverage and vulnerability-scan jobs, Dependabot and Renovate config files, GoReleaser release pipelines, Docker build/push, repository security settings, and AI-driven PR review. Use when setting up or improving Go project CI, writing or fixing `.github/workflows/*.yml`, adding a linter or security scanner as a pipeline job, wiring automated dependency-update bots, or adding quality gates. Covers wiring tools into a pipeline, not the analysis they perform: do NOT use for choosing or interpreting security findings (→ See `samber/cc-skills-golang@golang-security` skill) or for choosing, upgrading, or auditing dependency versions (→ See `samber/cc-skills-golang@golang-dependency-management` skill).
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: golang-continuous-integration
description: "GitHub Actions CI/CD for Go projects, with ready workflow YAML: tests with the race detector and a Go version matrix, golangci-lint v2, govulncheck, gosec and CodeQL, coverage gates, integration tests with service containers, Dependabot or Renovate with safe auto-merge, GoReleaser releases, multi-platform Docker images with SBOM and Trivy, repository security settings, and optional Claude or Copilot PR review. Use when setting up or improving Go project CI, writing or fixing .github/workflows/*.yml, adding a linter or security scanner as a pipeline job, wiring dependency update bots, or adding quality gates. Covers wiring tools into a pipeline, not interpreting their findings or choosing dependency versions."
user-invocable: true
license: MIT
compatibility: Designed for Claude Code, Codex or similar harness, and for projects using Golang.
metadata:
author: samber
version: "1.5.0"
allowed-tools: Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) WebFetch Bash(goreleaser:*) Bash(gh:*) AskUserQuestion
---
<!-- Modified by YourAISkill (youraiskill.com) on 2 December 2026 from the original by samber. See CHANGES.md. -->
**Persona:** You are a Go DevOps engineer. You treat CI as a quality gate: every pipeline decision is weighed against build speed, signal reliability, and security posture.
**Modes:**
- **Setup**: adding CI to a project for the first time. Read `go.mod` (Go version, module path), check for `cmd/`, a `Dockerfile` and existing `.golangci.yml`, then generate workflows in this order: test, lint, security, release. Ask before adding paid or account-based services (Codecov, Docker Hub, AI review).
- **Improve**: auditing or extending an existing pipeline. Read the current workflow files first, compare them with the Quick Reference table and Common Mistakes, then propose targeted additions without duplicating existing steps.
# Go Continuous Integration
## Action Versions
Current major versions as of December 2026: `actions/checkout@v7`, `actions/setup-go@v7`, `golangci/golangci-lint-action@v9`, `golang/govulncheck-action@v1`, `github/codeql-action/*@v4`, `codecov/codecov-action@v7`, `goreleaser/goreleaser-action@v7`, `dependabot/fetch-metadata@v3`, `docker/build-push-action@v7`, `docker/metadata-action@v6`, `docker/login-action@v4`, `docker/setup-qemu-action@v4`, `docker/setup-buildx-action@v4`. Check before writing: `gh api repos/OWNER/REPO/releases/latest --jq .tag_name`.
- GitHub's own actions can use major tags (`@v7`). Pin **third-party** actions to a full commit SHA with the version in a comment (`uses: owner/action@<40-char-sha> # v1.2.3`); tags can be moved by whoever controls the repository. Dependabot's `github-actions` ecosystem keeps SHA pins updated.
- `securego/gosec` publishes full version tags only (`@v2.30.0`), not a moving `@v2` tag.
## Quick Reference
| Stage | Tool | Purpose |
| --- | --- | --- |
| **Test** | `go test -race -shuffle=on` | Unit tests + race detection |
| **Coverage** | Codecov (or `go tool cover` threshold) | Coverage reporting and gates |
| **Lint** | `go vet`, `golangci-lint` | Static analysis and style |
| **SAST** | `gosec`, CodeQL | Security static analysis |
| **Vuln scan** | `govulncheck` | Known vulnerabilities in code you actually call |
| **Deps** | Dependabot / Renovate | Automated dependency updates |
...From samber's repository, MIT licence.
Related skills
-
Checked
Go dependency injection
Wires Go services with Uber Fx in the right boot order, with validation in CI and clean shutdowns.
8/101 credit -
Checked
Fuzz harness planning
Plans fuzz harness scope and fuzzer choice for code you are authorised to test, so real bugs surface sooner.
7/101 credit -
Checked
Go config with Viper
Sets up and debugs Go config with spf13/viper, so flags, env vars and files load in the right order every time.
8/101 credit -
Checked
Go runtime debugging
Diagnoses Go panics, deadlocks and goroutine leaks with delve and pprof, so you find the real cause fast.
7/101 credit -
Checked
Go Project CI Setup
Sets up Go projects with CI checks that truly catch problems, fixing common lint, format and toolchain traps.
8/101 credit -
Checked
Go test quality
Writes and reviews Go tests with subtests, golden files, httptest, containers and fuzzing to catch real bugs.
7/101 credit