Skip to content

fix(ci): add cd and ./gradlew to agent allowed tools#2174

Merged
naqvitalha merged 1 commit intomainfrom
fix/add-gradlew-cd-permissions
Mar 20, 2026
Merged

fix(ci): add cd and ./gradlew to agent allowed tools#2174
naqvitalha merged 1 commit intomainfrom
fix/add-gradlew-cd-permissions

Conversation

@naqvitalha
Copy link
Copy Markdown
Collaborator

Description

Adds Bash(cd *) and Bash(./gradlew *) to allowed tools for fix, bot, and android-bot workflows. Without these, the agent can't build Android APKs or navigate directories.

  • cd — no security risk, only changes directory for that single command
  • ./gradlew — same trust model as yarn (runs build scripts from the checked-out repo)

Not added to triage (read-only workflow).

Test plan

  • Android agent can run ./gradlew assembleDebug and cd fixture/react-native

@naqvitalha naqvitalha merged commit a4c31b8 into main Mar 20, 2026
21 of 22 checks passed
@naqvitalha naqvitalha deleted the fix/add-gradlew-cd-permissions branch March 20, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants