Skip to content

[aw] Enable local diff checks in Android PR Reviewer - #12502

Merged
jonathanpeppers merged 2 commits into
mainfrom
copilot/aw-fix-missing-tools-in-reviewer
Aug 25, 2026
Merged

[aw] Enable local diff checks in Android PR Reviewer#12502
jonathanpeppers merged 2 commits into
mainfrom
copilot/aw-fix-missing-tools-in-reviewer

Conversation

Copilot AI commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

The Android PR Reviewer could not cross-check PR changes with local git diff because the command was excluded from its security allowlist.

  • Tool access
    • Allow git diff with arbitrary diff arguments while keeping other Git commands blocked.
    - git diff *
  • Generated workflow
    • Regenerate android-reviewer.lock.yml with the corresponding shell(git diff) permission.

Co-authored-by: jonathanpeppers <840039+jonathanpeppers@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix missing tools reported in Android PR Reviewer [aw] Enable local diff checks in Android PR Reviewer Aug 25, 2026
Copilot AI requested a review from jonathanpeppers August 25, 2026 01:28
@jonathanpeppers
jonathanpeppers marked this pull request as ready for review August 25, 2026 17:12
Copilot AI lite review requested due to automatic review settings August 25, 2026 17:12
@jonathanpeppers jonathanpeppers added the ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable). label Aug 25, 2026
@jonathanpeppers
jonathanpeppers enabled auto-merge (squash) August 25, 2026 17:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enables the Android PR Reviewer agentic workflow to run local git diff commands by adding git diff to the workflow firewall/tool allowlist and regenerating the compiled lock workflow so the permission is reflected at runtime.

Changes:

  • Add git diff * to the tools.bash allowlist in .github/workflows/android-reviewer.md.
  • Regenerate .github/workflows/android-reviewer.lock.yml so the job invocation includes --allow-tool 'shell(git diff)'.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/android-reviewer.md Allows the reviewer agent to execute local git diff for cross-checking PR changes.
.github/workflows/android-reviewer.lock.yml Updates the generated workflow to include the corresponding shell(git diff) permission.

@jonathanpeppers
jonathanpeppers merged commit a4466df into main Aug 25, 2026
45 checks passed
@jonathanpeppers
jonathanpeppers deleted the copilot/aw-fix-missing-tools-in-reviewer branch August 25, 2026 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] Android PR Reviewer is missing required tool

5 participants