Skip to content

fix: constrain list_code_scanning_alerts with state:open and severity:critical,high in structural analysis prompt - #48551

Merged
pelikhan merged 2 commits into
mainfrom
copilot/hippo-audit-workflow-prompts
Jul 28, 2026
Merged

fix: constrain list_code_scanning_alerts with state:open and severity:critical,high in structural analysis prompt#48551
pelikhan merged 2 commits into
mainfrom
copilot/hippo-audit-workflow-prompts

Conversation

Copilot AI commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Unconstrained list_code_scanning_alerts calls in workflow prompts can produce oversized responses and cause workflow failures. The guard params were already present in github-mcp-structural-analysis.md but as a soft sub-bullet note, not inline with the call — easy for an agent to skip.

Change

.github/workflows/github-mcp-structural-analysis.md

  • Moved state: open and severity: critical,high constraints directly into the call instruction, consistent with how every other tool in the same list specifies its parameters:
-6. **code_security**: `list_code_scanning_alerts`
-   - Required guard params: `state: open`, `severity: critical,high`
+6. **code_security**: `list_code_scanning_alerts` — always call with `state: open` and `severity: critical,high`

The head_limit note is preserved. Workflow recompiled (264/264, 0 errors).

…:critical,high in structural analysis prompt

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Audit workflow prompts for constrained code-scanning queries fix: constrain list_code_scanning_alerts with state:open and severity:critical,high in structural analysis prompt Jul 28, 2026
Copilot AI requested a review from pelikhan July 28, 2026 07:25
@pelikhan
pelikhan marked this pull request as ready for review July 28, 2026 07:35
Copilot AI review requested due to automatic review settings July 28, 2026 07:35
@pelikhan
pelikhan merged commit 60c750a into main Jul 28, 2026
@pelikhan
pelikhan deleted the copilot/hippo-audit-workflow-prompts branch July 28, 2026 07:35

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

Strengthens response-size constraints in the structural-analysis workflow.

Changes:

  • Moves code-scanning filters inline with the tool instruction.
  • Refreshes generated workflow locks.
Show a summary per file
File Description
.github/workflows/github-mcp-structural-analysis.md Adds inline alert filters.
.github/workflows/github-mcp-structural-analysis.lock.yml Updates the generated body hash.
.github/workflows/smoke-copilot-auto.lock.yml Refreshes generated model-cost metadata.

Review details

Tip

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

  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Medium

5. **actions**: `list_workflows` - List workflows with perPage=1
6. **code_security**: `list_code_scanning_alerts`
- Required guard params: `state: open`, `severity: critical,high`
6. **code_security**: `list_code_scanning_alerts` — always call with `state: open` and `severity: critical,high`
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.83.5

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.

[hippo] [Code Quality] Audit workflow prompts for unconstrained code-scanning queries

3 participants