Restrict Claude Step Summary output to debug runs#24
Merged
danielorbach merged 2 commits intomainfrom Mar 17, 2026
Merged
Conversation
display_report renders Claude's analysis in the GitHub Step Summary. Unconditionally enabling it is verbose for routine runs and, per the upstream warning, should only be used with trusted input. Gate on runner.debug so the report is still available when re-running with debug logging enabled. display_report (not show_full_output) is the correct input here: show_full_output dumps the full JSON execution log including tool results that may contain secrets; display_report only renders Claude's authored summary, which is safe for this workflow's trusted-input context.
The actor gate on the review job restricts Claude steps to the dependabot[bot] actor, mitigating the primary prompt injection vector (attacker-authored PR/issue content reaching the Claude prompt or Step Summary). Note that Claude may still fetch external content such as changelogs during analysis; the actor gate addresses the direct input surface.
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThe PR modifies the GitHub Actions workflow to add a prompt-injection mitigation comment and makes the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment |
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.

PR #22 unconditionally enabled
display_reporton the Claude review steps so the workflow summary would always render Claude's analysis. This is verbose for routine Dependabot runs and, per the upstream warning on the input, should be reserved for trusted-input contexts.The Step Summary is now gated on
runner.debug, making it available when a workflow is re-run with debug logging enabled but silent otherwise. The workflow header also gains a comment explaining why the prompt injection threat model that motivated upstream's default-off change does not apply here: the review job's actor gate restricts execution to thedependabot[bot]actor, a trusted first-party automation source.Relates to #6