Skip to content

Run CodeQL from a workflow instead of default setup - #34

Closed
StefanZ8n wants to merge 1 commit into
mainfrom
ci/codeql-advanced-setup
Closed

StefanZ8n wants to merge 1 commit into
mainfrom
ci/codeql-advanced-setup

Conversation

@StefanZ8n

Copy link
Copy Markdown
Collaborator

Why

CodeQL default setup doesn't analyze pushes made by Dependabot. It posts a neutral "configurations not found" check, and the required Analyze (go) / Analyze (javascript-typescript) checks never start. Dependabot PRs (currently #29, #32) stayed blocked until someone pushed to the branch by hand.

What

.github/workflows/codeql.yml (advanced setup): runs on pull_request (Dependabot included), push to main, and weekly. It covers the same languages as default setup: actions, go (autobuild, Go 1.26), javascript-typescript. The job names stay Analyze (<language>), so the ruleset's required checks match without changes.

Before merging

Turn off default setup (Settings → Code security → CodeQL analysis → ⋯ → Disable CodeQL). While default setup is on, GitHub rejects uploads from this workflow, so its Analyze jobs fail. Re-run the failed jobs after disabling it.

🤖 Generated with Claude Code

Default setup does not analyze Dependabot's pushes, so Dependabot PRs
blocked forever on the required Analyze (go) and Analyze
(javascript-typescript) checks. An advanced-setup workflow on
pull_request runs for them too. Same languages (actions, go,
javascript-typescript), plus push to main and a weekly schedule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@StefanZ8n

Copy link
Copy Markdown
Collaborator Author

Doesn't work because of organizational rules for default CodeQL scanning.

@StefanZ8n StefanZ8n closed this Nov 16, 2026
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