Skip to content

fix: suggest calling missing_tool when bash command blocked by security policy#29127

Merged
pelikhan merged 1 commit intomainfrom
copilot/update-missing-tool-description
Apr 29, 2026
Merged

fix: suggest calling missing_tool when bash command blocked by security policy#29127
pelikhan merged 1 commit intomainfrom
copilot/update-missing-tool-description

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 29, 2026

Summary

Updates the missing_tool tool description to explicitly suggest that agents call this tool when a bash command is blocked by security policy, passing reason: "security".

Changes

  • actions/setup/js/safe_outputs_tools.json: Added sentence to missing_tool description: "When a bash command is blocked by security policy, call this tool with reason set to "security"."
  • pkg/workflow/js/safe_outputs_tools.json: Same update to the embedded copy used by the Go binary.

Copilot AI requested a review from pelikhan April 29, 2026 13:58
@pelikhan pelikhan marked this pull request as ready for review April 29, 2026 14:02
Copilot AI review requested due to automatic review settings April 29, 2026 14:02
@pelikhan pelikhan merged commit 08ea86d into main Apr 29, 2026
@pelikhan pelikhan deleted the copilot/update-missing-tool-description branch April 29, 2026 14:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the missing_tool tool description to guide agents to report security-policy-blocked bash commands via missing_tool (with reason set to "security").

Changes:

  • Extend missing_tool’s description text in two safe-outputs tool registries.
  • Keep the JS action copy and the Go-binary embedded copy in sync.
Show a summary per file
File Description
actions/setup/js/safe_outputs_tools.json Adds guidance sentence to the missing_tool description used by the JS action.
pkg/workflow/js/safe_outputs_tools.json Mirrors the same missing_tool description update for the Go-binary embedded copy.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 2

{
"name": "missing_tool",
"description": "Report that a tool or capability needed to complete the task is not available, or share any information you deem important about missing functionality or limitations. Use this when you cannot accomplish what was requested because the required functionality is missing or access is restricted.",
"description": "Report that a tool or capability needed to complete the task is not available, or share any information you deem important about missing functionality or limitations. Use this when you cannot accomplish what was requested because the required functionality is missing or access is restricted. When a bash command is blocked by security policy, call this tool with reason set to \"security\".",
{
"name": "missing_tool",
"description": "Report that a tool or capability needed to complete the task is not available, or share any information you deem important about missing functionality or limitations. Use this when you cannot accomplish what was requested because the required functionality is missing or access is restricted.",
"description": "Report that a tool or capability needed to complete the task is not available, or share any information you deem important about missing functionality or limitations. Use this when you cannot accomplish what was requested because the required functionality is missing or access is restricted. When a bash command is blocked by security policy, call this tool with reason set to \"security\".",
@github-actions github-actions Bot mentioned this pull request Apr 29, 2026
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.

3 participants