Repository navigation
Add agent_workflow_injection check for AI-agent CI steps - #2300
Closed
remigiusz-antczak wants to merge 1 commit into
Closed
remigiusz-antczak wants to merge 1 commit into
remigiusz-antczak wants to merge 1 commit into
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 or branch-name text interpolated into an AI-agent step (with the job's token and secret reach named), a pull-request head checked out 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: 5/5 size-budget-raise: .claude/skills/deep-code-review/references/appsec-supply.md 10495→11005 size-budget-raise: .claude/skills/INDEX.md 18145→18283 size-budget-raise: .claude/skills/deep-code-review/INDEX-scripts.md 9207→9429 size-budget-raise: .claude/skills/deep-code-review/references/review-config.md 6472→6888 size-budget-raise: .claude/skills/deep-code-review/references/security-review-mode.md 13589→14643 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Superseded by #2301. |
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.
Closes the agentic-actions / CI prompt-injection depth gap. Existing coverage (zizmor routing, appsec-supply.md A03 prose) handled generic script injection and pull_request_target; nothing looked at AI-agent steps.
agent-injection(leads, report-only, stdlib, line-based).Note: origin/main already had review-config.md and security-review-mode.md over their size budgets, so this commit resyncs those two rows with markers.
Flag names are matched as patterns and not re-verified against each vendor's current docs; hence "leads".
🤖 Generated with Claude Code