Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.06 KB

File metadata and controls

59 lines (40 loc) · 1.06 KB

Contributing to agent-tool-firewall

Prerequisites

Tool Version
Go 1.22+
git 2.x

Local development

git clone https://github.com/SecAI-Hub/agent-tool-firewall.git
cd agent-tool-firewall
go build .
go test -v -race ./...
go vet ./...

Running locally

POLICY_PATH=./examples/policy.yaml ./agent-tool-firewall

Tests

go test -v -race -count=1 ./...

All tests must pass before submitting a PR.

Code style

  • Run gofmt -s -w . before committing.
  • Run go vet ./... to catch common issues.
  • Keep the single-file structure unless there is a strong reason to split.

Pull request process

  1. Fork the repo and create a feature branch.
  2. Make your changes with clear, focused commits.
  3. Ensure all tests pass (go test -race ./...).
  4. Open a PR against main.

Commit message format

<type>: <short summary>

<optional body>

Types: feat, fix, docs, test, refactor, chore, security.

Security issues

See SECURITY.md for reporting vulnerabilities.