Repository navigation
Add agent_workflow_injection check for AI-agent CI steps - #2303
Merged
Merged
Conversation
…sider text can steer review_checks.sh now runs agent_workflow_injection.py on changed workflows (tool agent-injection). It lists as leads: issue, PR, comment, branch-name or workflow_run text interpolated into an AI-agent step (directly or through job- or workflow-level env, with the job's token and secret reach named), a pull-request head checked out (actions/checkout, gh pr checkout, git fetch pull/N/head) beside an agent under pull_request_target, issue_comment or workflow_run, and agent steps with sandbox or approval off, an unrestricted Bash tool, or an any-user trigger. appsec-supply.md gains the matching review question. Tests cover a positive and a decoy per rule plus the review_checks step. Tests: 18/18 size-budget-raise: .claude/skills/deep-code-review/references/appsec-supply.md 10495→11005 size-budget-raise: .claude/skills/INDEX.md 18224→18362 size-budget-raise: .claude/skills/deep-code-review/INDEX-scripts.md 9383→9605 size-budget-raise: .claude/skills/deep-code-review/references/review-config.md 6472→6888 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Supersedes #2301 (second review round folded in).
agent-injection(leads, report-only, stdlib, line-based).Flag names are matched as patterns and not re-verified against each vendor's current docs, hence "leads".
🤖 Generated with Claude Code