Skip to content

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

Merged
YogeshPraj merged 2 commits into
mainfrom
copilot/fix-codeql-analyze-job
May 26, 2026
Merged

Resolve CodeQL csharp analyze failure when default setup is enabled#726
YogeshPraj merged 2 commits into
mainfrom
copilot/fix-codeql-analyze-job

Conversation

Copy link
Copy Markdown
Contributor

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
@YogeshPraj YogeshPraj disabled auto-merge May 26, 2026 13:01
@YogeshPraj YogeshPraj merged commit f52f011 into main May 26, 2026
6 checks passed
@YogeshPraj YogeshPraj deleted the copilot/fix-codeql-analyze-job branch May 26, 2026 13:01
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