go/pkg
Snider 4670dbd501
feat(monitor): add security findings aggregation command (#68)
* feat(monitor): add security findings aggregation command

Implements `core monitor` to aggregate security findings from GitHub:
- Code scanning alerts (Semgrep, Trivy, Gitleaks, CodeQL, etc.)
- Dependabot vulnerability alerts
- Secret scanning alerts

Features:
- Scan current repo, specific repo, or all repos via registry
- Filter by severity (--severity critical,high)
- JSON output for piping to other tools (--json)
- Grouped output by repo with severity highlighting

Closes #49

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(monitor): address CodeRabbit review feedback

- Fix DependabotAlert JSON parsing with proper nested struct for
  dependency.manifest_path field
- Remove unnecessary --jq flag from code scanning API call
- Fix truncate() to use runes for proper UTF-8 handling
- Sort repo names for deterministic output ordering
- Document hardcoded org fallback behavior

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(monitor): improve error handling per CodeRabbit review

- Use errors.E() consistently instead of errors.Wrap()
- Pass underlying errors to errors.E() for better context
- Return errors from fetch functions instead of swallowing
- Distinguish expected conditions (feature not enabled) from real errors
- Display fetch warnings in non-JSON mode
- Continue scanning other repos even if one fails

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 05:44:46 +00:00
..
agentic feat(framework): add QUERY/QUERYALL/PERFORM dispatch patterns 2026-01-30 10:18:54 +00:00
ai refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
build fix(vm): use double-dash flags for linuxkit build command (#57) 2026-02-01 01:49:00 +00:00
cache refactor: flatten CLI to root, simplify pkg/mcp for CLI-only use 2026-01-29 18:13:51 +00:00
ci refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
cli fix(docs): respect workspace.yaml packages_dir setting (fixes #46) (#55) 2026-02-01 01:59:27 +00:00
container fix(container): fix flaky test temp directory cleanup race 2026-02-01 04:06:03 +00:00
dev feat(qa,dev): add issues, health, and workflow commands (#67) 2026-02-01 05:20:46 +00:00
devops refactor: flatten CLI to root, simplify pkg/mcp for CLI-only use 2026-01-29 18:13:51 +00:00
docs fix(i18n): restore missing translation keys for health command (#65) 2026-02-01 03:55:01 +00:00
doctor refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
errors feat(pkg): add standalone log and errors packages 2026-01-30 22:02:40 +00:00
framework fix(docs): respect workspace.yaml packages_dir setting (fixes #46) (#55) 2026-02-01 01:59:27 +00:00
git feat(framework): add QUERY/QUERYALL/PERFORM dispatch patterns 2026-01-30 10:18:54 +00:00
go refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
i18n feat(monitor): add security findings aggregation command (#68) 2026-02-01 05:44:46 +00:00
log feat(pkg): add standalone log and errors packages 2026-01-30 22:02:40 +00:00
mcp refactor: flatten CLI to root, simplify pkg/mcp for CLI-only use 2026-01-29 18:13:51 +00:00
monitor feat(monitor): add security findings aggregation command (#68) 2026-02-01 05:44:46 +00:00
php fix(i18n): restore missing translation keys for health command (#65) 2026-02-01 03:55:01 +00:00
pkgcmd refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
process test(process): add concurrency tests and global function wrappers 2026-01-30 19:55:37 +00:00
qa feat(qa,dev): add issues, health, and workflow commands (#67) 2026-02-01 05:20:46 +00:00
release fix(docs): respect workspace.yaml packages_dir setting (fixes #46) (#55) 2026-02-01 01:59:27 +00:00
repos feat(workspace): implement workspace.yaml support 2026-02-01 02:18:19 +00:00
sdk fix(sdk): run Docker containers as current user to fix CI cleanup 2026-02-01 04:01:40 +00:00
setup fix(i18n): restore missing translation keys for health command (#65) 2026-02-01 03:55:01 +00:00
test refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
updater feat(php): add quality commands and split cmd/php for maintainability 2026-01-29 23:58:03 +00:00
vm refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
workspace fix(i18n): restore missing translation keys for health command (#65) 2026-02-01 03:55:01 +00:00