Skip to content

Contributing Guide

We welcome contributions to Spotter! This guide will help you get started with contributing code, documentation, security rules, and more.

  • Go: Required for building Spotter
  • Git: For version control
  • Make: For build automation
  • Docker: For containerized development (optional)
  • Kubernetes cluster: For testing (kind, minikube, or cloud cluster)
  1. Fork and Clone
Terminal window
# Fork the repository on GitHub
# Then clone your fork
git clone https://github.com/YOUR_USERNAME/spotter.git
cd spotter
# Add upstream remote
git remote add upstream https://github.com/madhuakula/spotter.git
  1. Install Dependencies
Terminal window
# Install Go dependencies
go mod download
  1. Build and Test
Terminal window
# Build the project
make build
# Run tests
make test
# Run linting
make lint
Terminal window
# Update main branch
git checkout main
git pull upstream main
# Create feature branch
git checkout -b feature/your-feature-name
# Or for bug fixes
git checkout -b fix/issue-number-description
Terminal window
# Make your changes
# Add tests for new functionality
# Update documentation if needed
# Run tests frequently
make test
# Check code quality
make lint
Terminal window
# Stage changes
git add .
# Commit with descriptive message
git commit -m "feat: add new security rule for privileged containers"
# Follow conventional commit format:
# feat: new feature
# fix: bug fix
# docs: documentation changes
# style: formatting changes
# refactor: code refactoring
# test: adding tests
# chore: maintenance tasks
Terminal window
# Push to your fork
git push origin feature/your-feature-name
# Create pull request on GitHub
# Fill out the PR template
# Link related issues

We follow the Contributor Covenant Code of Conduct. Please be respectful and inclusive in all interactions.

  • GitHub Issues: Bug reports and feature requests
  • GitHub Discussions: General questions and discussions
  1. Check Documentation: Start with the docs
  2. Search Issues: Look for existing discussions
  3. Ask Questions: Use GitHub Discussions

We recognize contributors through:

  • Contributors file: Listed in CONTRIBUTORS.md
  • Release notes: Mentioned in changelogs
  • Social media: Highlighted on Twitter/LinkedIn

Thank you for contributing to Spotter! Your contributions help make Kubernetes security accessible to everyone.