Skip to content

Remove redundant advanced CodeQL workflow#24

Merged
jonaslejon merged 2 commits into
mainfrom
fix/codeql-default-setup-conflict
Jun 4, 2026
Merged

Remove redundant advanced CodeQL workflow#24
jonaslejon merged 2 commits into
mainfrom
fix/codeql-default-setup-conflict

Conversation

@jonaslejon

Copy link
Copy Markdown
Owner

Why

CodeQL CI has been failing on every scheduled run. The scan itself succeeds — the failure is at the SARIF upload-processing step:

Code Scanning could not process the submitted SARIF file: CodeQL analyses from advanced configurations cannot be processed when the default setup is enabled

Root cause

The repo has CodeQL default setup enabled (python + actions, default query suite, weekly — configured 2026-04-06). GitHub rejects SARIF uploads from advanced-config workflows whenever default setup is on, so the legacy .github/workflows/codeql-analysis.yml (committed Apr 2025) fails at upload while default setup does the real scanning.

In the run history this shows as two parallel jobs: Scheduled / CodeQL (default setup) succeeds, CodeQL / CodeQL (this advanced workflow) fails.

Fix

Delete the redundant advanced workflow. Default setup already covers the same languages and query suite. As a bonus this also drops the now-deprecated actions/checkout@v3 and github/codeql-action@v2 (Node 20) usage flagged in the run annotations.

🤖 Generated with Claude Code

jonaslejon and others added 2 commits June 4, 2026 13:51
The repo has CodeQL default setup enabled (python + actions, weekly),
which rejects SARIF uploads from advanced-config workflows. The legacy
codeql-analysis.yml therefore failed at the upload-processing step on
every scheduled run with:

  "CodeQL analyses from advanced configurations cannot be processed
   when the default setup is enabled"

Default setup already covers the same languages and query suite, so the
advanced workflow is pure redundancy. Removing it resolves the failing
runs (and drops the deprecated checkout@v3 / codeql-action@v2 actions).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jonaslejon jonaslejon merged commit 31fa7f6 into main Jun 4, 2026
10 of 11 checks passed
@jonaslejon jonaslejon deleted the fix/codeql-default-setup-conflict branch June 4, 2026 11:56
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.

1 participant