Skip to content

Switch CodeQL to default setup, remove advanced-setup workflow - #1075

Merged
KevinJump merged 1 commit into
v17/mainfrom
chore/codeql-default-setup
Sep 8, 2026
Merged

Switch CodeQL to default setup, remove advanced-setup workflow#1075
KevinJump merged 1 commit into
v17/mainfrom
chore/codeql-default-setup

Conversation

@KevinJump

Copy link
Copy Markdown
Owner

Summary

  • Enabled GitHub's default setup for code scanning (languages: actions, csharp, javascript-typescript) via the code-scanning API. Default setup is GitHub's current recommendation for repos without custom build requirements — it's managed by GitHub directly (auto-updates CodeQL CLI/query versions, no workflow file to maintain), rather than us running and maintaining our own Actions workflow.
  • Removed .github/workflows/codeql-2.yml (the Advanced setup workflow). Enabling default setup automatically disables and blocks uploads from any existing advanced-setup workflow, so leaving the file in place would just burn CI minutes on a run that can no longer publish results.

Known limitation

GitHub recently added a github-codeql-config-file repository property that lets default setup pick up a custom config file (for paths-ignore, extra queries, etc.) without needing a full workflow file. That property is an organization-only feature, and KevinJump/uSync is owned by a personal user account, so it isn't available here. We're on plain default setup with GitHub's built-in defaults for now — no paths-ignore customization possible until/unless the repo moves under an org.

Test plan

  • Confirmed via API that default setup is state: configured for this repo
  • Confirmed an initial CodeQL run was triggered by enabling default setup
  • Verify the next scheduled/PR-triggered scan shows up under Security > Code scanning as expected

🤖 Generated with Claude Code

Enabled default setup for code scanning (actions, csharp,
javascript-typescript) via the code-scanning API, which is GitHub's
current recommendation for repos that don't need custom build steps -
it's managed entirely by GitHub (auto-updates CodeQL versions/queries,
no workflow file to maintain) instead of running our own workflow.

Removed the now-redundant codeql-2.yml Advanced setup workflow: default
setup disables and blocks uploads from any existing advanced-setup
workflow, so keeping the file around would just waste CI minutes on a
run that can't publish results.

Note: GitHub's newer github-codeql-config-file repository property
(for custom paths-ignore/queries under default setup) is an
organization-only feature and isn't available on this personal-owned
repo, so we're on plain default setup without that customization for
now.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@KevinJump
KevinJump merged commit 69aef01 into v17/main Sep 8, 2026
1 check passed
@KevinJump
KevinJump deleted the chore/codeql-default-setup branch September 8, 2026 12:49
@KevinJump KevinJump mentioned this pull request Sep 8, 2026
5 tasks
KevinJump added a commit that referenced this pull request Sep 8, 2026
Enabling GitHub's default setup for code scanning at the repo level
(matching v17's #1075) applies across all branches, and blocks uploads
from any advanced/workflow-based CodeQL run - this workflow's PR runs on
v18 were failing with "CodeQL analyses from advanced configurations
cannot be processed when the default setup is enabled". Default setup
now covers v18 the same way it already covers v17.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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