Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

674 B
Raw Blame

paths: - "/*.go" - "/go.mod" - "**/go.sum"

Go セキュリティ

このファイルは common/security.md を Go 固有のコンテンツで拡張します。

シークレット管理

apiKey := os.Getenv("OPENAI_API_KEY")
if apiKey == "" {
    log.Fatal("OPENAI_API_KEY not configured")
}

セキュリティスキャン

  • gosec を使用して静的セキュリティ解析を実行:
    gosec ./...
    

Context とタイムアウト

タイムアウト制御には常に context.Context を使用する:

ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
defer cancel()