golang-continuous-integration

Create GitHub Actions CI/CD pipelines for Go projects with testing, linting, and security scans.

2|Updated Feb 12, 2024
One-click install
npx skills add https://github.com/adibfirman/dotfiles --skill golang-continuous-integration-adibfirman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang-continuous-integration
Source: https://github.com/adibfirman/dotfiles/tree/main/claude/.claude/skills/technical/golang/golang-continuous-integration
Command: npx skills add https://github.com/adibfirman/dotfiles --skill golang-continuous-integration-adibfirman

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) and references (resource) components.

What problem does it solve?

This Skill helps you set up and improve continuous integration and release pipelines for Go projects so changes are tested, linted, and security-checked consistently before they reach production.

Core Features & Use Cases

  • CI pipeline setup for testing, linting, security/SAST, dependency updates, and releases with GitHub Actions.
  • Quality gates like race-enabled tests, coverage reporting, and go mod tidy consistency checks to prevent silent regressions.
  • Release automation using GoReleaser and optional Docker build workflows with provenance/SBOM and vulnerability scanning.

Quick Start

Ask the AI to generate your GitHub Actions workflows starting with test, then lint, then security, then release, for your Go repository (including code coverage via Codecov and govulncheck for vulnerability detection).

Frequently Asked Questions about golang-continuous-integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up GitHub Actions for a Go project with testing and security scanning?

To set up GitHub Actions for Go, you establish CI/CD pipelines covering testing, linting, SAST/security scanning, and coverage reporting. This Skill generates workflows with race-enabled tests, govulncheck, and CodeQL to ensure code correctness and vulnerability detection before production deployment.

What's the best way to automate Go releases with GoReleaser in GitHub Actions?

Automating Go releases with GoReleaser involves configuring safe release automation using least-privilege permissions and pinned action versions. This Skill sets up GoReleaser workflows alongside optional Docker builds with provenance, SBOM, and vulnerability scanning for secure artifact distribution.

How does go mod tidy consistency checking prevent silent regressions in CI?

Go mod tidy consistency checking prevents silent regressions by verifying that dependencies remain properly aligned. This Skill implements quality gates that diff go mod tidy results within your CI pipeline, catching uncommitted dependency changes before they reach production.

Can I add security tools like govulncheck and Bearer to an existing Go CI pipeline?

Yes, you can add security tools like govulncheck and Bearer to existing Go CI pipelines. This Skill audits your current workflows and integrates missing quality gates, including CodeQL and dependency update automation, without duplicating existing pipeline steps.

Do I need to pin GitHub Actions versions for safe Go continuous integration?

Pinning GitHub Actions versions is required for safe Go continuous integration to prevent supply chain attacks. This Skill establishes release automation using least-privilege permissions and pinned action versions to ensure your CI/CD pipeline remains secure and reproducible.