Grant bash execution permissions to Daily Workflow Updater#14415
Grant bash execution permissions to Daily Workflow Updater#14415
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Updates the Daily Workflow Updater agentic workflow to correctly grant bash execution permissions so it can run gh aw update and supporting git commands without missing_tool failures.
Changes:
- Switch workflow frontmatter from a bash command allowlist to
bash: true. - Regenerate the compiled
.lock.ymlto use Copilot CLI--allow-all-tools.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/daily-workflow-updater.md | Enables unrestricted bash tool execution via bash: true in frontmatter. |
| .github/workflows/daily-workflow-updater.lock.yml | Updates compiled workflow to pass --allow-all-tools to Copilot CLI and refreshes frontmatter hash. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -608,39 +608,11 @@ jobs: | |||
| - name: Execute GitHub Copilot CLI | |||
| id: agentic_execution | |||
| # Copilot CLI tool arguments (sorted): | |||
There was a problem hiding this comment.
The generated comment block for Copilot CLI tool args is now misleading: it prints # Copilot CLI tool arguments (sorted): but no entries, even though the command uses --allow-all-tools. This appears to come from generateCopilotToolArgumentsComment iterating args as flag/value pairs; --allow-all-tools is a standalone flag so it never renders. Consider updating the comment generator to handle single flags (emit # --allow-all-tools) so compiled workflows remain auditable.
| # Copilot CLI tool arguments (sorted): | |
| # Copilot CLI tool arguments (sorted): | |
| # --allow-all-tools |
Daily Workflow Updater fails with
missing_toolerrors when attempting to executegh aw updateand git commands. The workflow's bash configuration used an explicit command allowlist which doesn't properly enable bash tool execution.Changes
.github/workflows/daily-workflow-updater.md: Replace bash command allowlist withbash: true.github/workflows/daily-workflow-updater.lock.yml: Regenerated with--allow-all-toolsflagTechnical Details
The frontmatter bash configuration:
The compiler transforms
bash: true→ wildcard["*"]→ Copilot CLI--allow-all-toolsflag, granting unrestricted bash execution to the agent.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.