Skip to content

Increase Code Scanning Fixer execution budget - #58861

Merged
pelikhan merged 2 commits into
mainfrom
copilot/fix-code-scanning-fixer-timeout
Sep 6, 2026
Merged

Increase Code Scanning Fixer execution budget#58861
pelikhan merged 2 commits into
mainfrom
copilot/fix-code-scanning-fixer-timeout

Conversation

Copilot AI commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

The Code Scanning Fixer exceeded its 30-minute execution limit after repeated denied local-reader calls. This updates its runtime budget and aligns permitted tools with its cache-inspection instructions.

  • Execution budget

    • Increase timeout-minutes from 30 to 40.
    • Update the prompt’s timeout reference.
  • Tool allowlist

    • Permit cat and head, which the workflow prompt instructs the agent to use for temporary cache files.
bash: ["cat:*", ..., "head:*", ...]
timeout-minutes: 40

Copilot AI linked an issue Sep 5, 2026 that may be closed by this pull request
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix timeout issue in code scanning fixer Increase Code Scanning Fixer execution budget Sep 5, 2026
Copilot AI requested a review from pelikhan September 5, 2026 20:33
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Category: bug | Risk: medium | Score: 39 | Action: defer | Batch: workflow-reliability.

Warning

Firewall blocked 2 domains

The following domains were blocked by the firewall during workflow execution:

  • api.github.com
  • github.com

[!TIP]
api.github.com is blocked because GitHub API access uses the built-in GitHub tools by default. Instead of adding api.github.com to network.allowed, use tools.github.mode: gh-proxy for direct pre-authenticated GitHub CLI access without requiring network access to api.github.com:

tools:
  github:
    mode: gh-proxy

See GitHub Tools for more information on gh-proxy mode.

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "api.github.com"
    - "github.com"

See Network Configuration for more information.

Generated by 🔧 PR Triage Agent · copilot · mai10 · 24.4 AIC · ⌖ 2.76 AIC · ⊞ 16.5K ·

@pelikhan
pelikhan marked this pull request as ready for review September 6, 2026 01:54
Copilot AI balanced review requested due to automatic review settings September 6, 2026 01:54
@pelikhan
pelikhan merged commit 8fb0a67 into main Sep 6, 2026
1 check passed
@pelikhan
pelikhan deleted the copilot/fix-code-scanning-fixer-timeout branch September 6, 2026 01:54

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.

🟡 Changes recommended

The workflow timeout was raised to 40 minutes, but the prompt still uses 30-minute stall-detection/exclusion thresholds that can produce incorrect “stalled” behavior.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the Code Scanning Fixer agentic workflow configuration to reduce premature failures by increasing the workflow execution budget and aligning the workflow’s allowed local shell-reader tools with the prompt’s cache-inspection instructions.

Changes:

  • Increase timeout-minutes from 30 → 40 (and propagate the change into the generated .lock.yml runtime/env values).
  • Expand the bash allowlist to include cat and head for inspecting temporary cache-memory files.
  • Update the prompt’s “Self-Assessment Checkpoint” timeout reference to 40 minutes.

Security / correctness notes

  • The prompt still uses 30-minute thresholds when deciding whether an in_progress cache record is stalled (and when to exclude still-in-flight attempts). With a 40-minute timeout, those thresholds can cause false “stalled” reporting and unnecessary skipping.

Validation / scanner results

  • Not run in this review environment (static diff review only).
File summaries
File Description
.github/workflows/code-scanning-fixer.md Increases timeout budget, permits cat/head for cache inspection, and updates prompt text to match the new timeout.
.github/workflows/code-scanning-fixer.lock.yml Regenerates compiled workflow to reflect the updated timeout and tool allowlist in the runner configuration.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 96 to +100
- Do not use the Copilot `read` tool for temporary files; use allowed shell readers such as `cat`, `head`, or `sed`
- Create pull request: emit a `create-pull-request` safe output after edits
- Report a stalled prior attempt: emit a `create-issue` safe output (diagnostic only, never a fix)

**Self-Assessment Checkpoint**: This workflow has a hard 20-minute timeout. A hang or timeout during the fix-attempt phase (steps 5-6) previously produced zero output and zero visibility. To avoid that:
**Self-Assessment Checkpoint**: This workflow has a hard 40-minute timeout. A hang or timeout during the fix-attempt phase (steps 5-6) previously produced zero output and zero visibility. To avoid that:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] Code Scanning Fixer timed out

3 participants