Skip to content

Resolve CodeQL csharp analyze failure when default setup is enabled#726

Open
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-codeql-analyze-job
Open

Resolve CodeQL csharp analyze failure when default setup is enabled#726
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-codeql-analyze-job

Conversation

Copy link
Copy Markdown

Copilot AI commented May 22, 2026

The CodeQL / Analyze (csharp) (pull_request) job was failing after analysis upload because GitHub code scanning rejected SARIF from an advanced CodeQL workflow while default setup is enabled for the repository.

  • Root cause

    • The workflow used github/codeql-action/analyze@v3 with default upload behavior, which conflicts with repositories using CodeQL default setup.
  • Workflow change

    • Updated .github/workflows/codeql-analysis.yml to disable SARIF upload from this advanced workflow:
      • Added with: upload: false on the Perform CodeQL Analysis step.
  • Resulting behavior

    • The workflow still runs CodeQL analysis, but no longer attempts the incompatible upload path that caused processing failure.
- name: Perform CodeQL Analysis
  uses: github/codeql-action/analyze@v3
  with:
    upload: false

Copilot AI changed the title [WIP] Fix failing CodeQL analyze job for pull request Resolve CodeQL csharp analyze failure when default setup is enabled May 22, 2026
Copilot AI requested a review from YogeshPraj May 22, 2026 12:13
@YogeshPraj YogeshPraj marked this pull request as ready for review May 22, 2026 12:15
@YogeshPraj YogeshPraj enabled auto-merge (squash) May 22, 2026 12:17
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