Repository navigation
Mark usage events as APP_ACCESS - #198
Conversation
Superseded — see the current review report for commit
|
Superseded — see the current review report for commit
|
There was a problem hiding this comment.
No blocking issues found — see the full review report
Usage events target the synthetic usage-app/github resource. That resource stands in for GitHub itself. Each event is a sign-in to GitHub as a whole. Set target_kind to TARGET_KIND_APP_ACCESS so consumers treat the target as the app. Co-authored-by: c1-squire-dev[bot] <c1-squire-dev[bot]@users.noreply.github.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
0a03d36 to
73fe36f
Compare
Superseded — see the current review report for commit
|
Connector PR Review: Mark usage events as APP_ACCESSBlocking Issues: 0 | Suggestions: 1 | Threads Resolved: 0 Review SummaryThis PR sets I scanned the full PR diff (2 files) for security and correctness issues. The enum exists in the vendored baton-sdk ( I applied the repo-local criteria: log levels (A), error wrapping (B), JSON typing (D), the breaking-change gate (E) and sync data-loss rules (S). None of them apply here. The change adds a field to emitted events and does not touch logging, error paths, IDs, entitlements, or resource-producing methods. It is not a breaking change under B1–B9. Security IssuesNone found. Correctness IssuesNone found. Suggestions
Prompt for AI agentsReviewed commit: |
There was a problem hiding this comment.
No blocking issues found — see the full review report
Summary
Sign-in usage events from the GitHub audit log target a synthetic resource,
usage-app/github. That resource stands in for GitHub itself. Without a target kind, consumers read the target as a child app.This PR sets
target_kind = TARGET_KIND_APP_ACCESSon every usage event. The field comes from baton-sdk v0.44.2 (ConductorOne/baton-sdk#1224), whichmainalready uses.Changes
TargetKindtoTARGET_KIND_APP_ACCESSinusageEventFromAuditEntry.TestUsageEventFromAuditEntry.Testing
go build ./...passes.go test ./...passes.golangci-lintwas not run. The installed binary is built with Go 1.26 and the repo targets Go 1.27.3.🤖 Generated with Claude Code