Skip to content
opendefensecloudPublic

About

Development tools for opendefense.cloud projects

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

dev-kit

Shared development environment for opendefensecloud repositories: a Nix dev shell, common Make targets, shared formatter and linter configs, reusable GitHub workflows and a release pipeline.

Features

  • Nix flake with a development shell (Go, pre-commit hooks, cosign, trivy)
  • direnv integration for automatic environment activation
  • Make targets for common development tasks, shared via common.mk
  • Formatting and linting for Go, YAML, shell and Markdown through treefmt
  • tools.lock for pinning Go binaries to specific versions
  • Version pin checks that keep Go and dev-kit versions in step
  • Repository settings, governance workflows and releases shared across the organization

Quick start

Copy the files from example/ into your project and adjust them. New repository setup walks through every step.

direnv allow   # enter the dev shell
make help      # list all targets

Documentation

Topic Contents
New repository setup Bootstrapping a repository with dev-kit
Make targets Targets, variables, extending, Go tools, envtest
Formatting and linting make fmt / make lint and the shared configs
Version pins Go version and dev-kit pin checks, flake.lock diffs
Dev shell mkShell options, git hooks, vulnerability scanning
Repository settings make repo-settings and its REPO_* variables
GitHub Actions Composite actions and the governance workflow stubs
Releases The shared release workflows and how to call them
Design decisions Why Nix and Make, and what we moved away from
Contributing Commit conventions for this repository

Links

  • Nix - Package manager and dev environment
  • direnv - Environment variable loader
  • go-overlay - Go tooling for Nix

About

Development tools for opendefense.cloud projects

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages