Skip to content

Add CI/CD workflows for Go library#2

Merged
JAORMX merged 2 commits intomainfrom
add-ci-workflows
Feb 2, 2026
Merged

Add CI/CD workflows for Go library#2
JAORMX merged 2 commits intomainfrom
add-ci-workflows

Conversation

@JAORMX
Copy link
Contributor

@JAORMX JAORMX commented Feb 2, 2026

Summary

  • Add GitHub Actions workflows for linting, testing, and security scanning
  • Configure golangci-lint adapted from toolhive with Go library-appropriate linters
  • Add Taskfile for local development tasks
  • Set up Renovate for automated dependency updates
  • Add SPDX license header enforcement

Workflows

Workflow Purpose
ci.yml Main orchestrator - triggers on PRs and pushes to main
lint.yml golangci-lint with build cache
test.yml Unit tests with race detection (Codecov commented out pending provisioning)
security.yml govulncheck + Trivy vulnerability scanning
license-headers.yml SPDX header verification

Local Development

task lint        # Run linters
task test        # Run tests with race detection
task test-coverage  # Run tests with coverage report
task license-fix # Add missing license headers

Test plan

  • Verify CI workflows run successfully on this PR
  • Test task lint locally
  • Test task test locally

🤖 Generated with Claude Code

JAORMX and others added 2 commits February 2, 2026 14:25
Set up comprehensive CI infrastructure for the toolhive-core library:

- GitHub Actions workflows for linting, testing, and security scanning
- golangci-lint configuration adapted from toolhive
- Taskfile for local development (lint, test, coverage, license management)
- Renovate configuration for automated dependency updates
- SPDX license header enforcement

Workflows include:
- golangci-lint with caching for fast feedback
- Unit tests with race detection
- govulncheck for Go vulnerability scanning
- Trivy for filesystem security scanning
- License header verification

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add go.mod to initialize Go module
- Simplify Trivy to table output (SARIF upload requires public repo)
- Remove security-events permission until repo is public

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@JAORMX JAORMX merged commit b0a2143 into main Feb 2, 2026
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants