[SOURCE-324] Harden AI review workflow - #29
Draft
xopham wants to merge 3 commits into
Draft
Conversation
🎉 All green!🧪 All tests passed 🔗 Commit SHA: d805a09 | Docs | Datadog PR Page | Give us feedback! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
anthropics/claude-code-actionagent flow with read-only tools, project/local settings disabled, a 10-turn ceiling, and schema-backed output that is rejected rather than recovered from execution logsSecurity model
Model execution remains isolated from GitHub write permissions. Trusted code and schemas come from the exact reusable-workflow revision; review guides come from a gate-pinned default-branch commit; PR content and provider output are treated as untrusted data. The post job performs strict shape validation and a second secret/anomaly scan before calling GitHub.
review_event: COMMENT_ONLYremains the secure default.ALLis an explicit relaxation for same-repository PRs and is documented as such. Gemini still requires network access to reach its API, but exposes no model-callable network, shell, write, MCP, or extension tool.Reliability
Validation
npm test(101 passing, 99.39% statement coverage)actionlint 1.7.12(with the compatibility ignore for GitHub's documentedjob.workflow_repository/job.workflow_shacontexts)git diff --checkOperational notes
A live reusable-workflow run with real provider secrets was not performed. The pinned Claude action installs its fixed CLI version through Anthropic's mutable installer endpoint, so the action SHA does not pin the installer response. Datadog's internal guidance also requires coordinating direct-provider usage and costs because this path does not use centralized AI Gateway observability.
Ticket
SOURCE-324