Skip to content

ci: add CodeQL workflow with Swift analysis#412

Merged
jkmassel merged 5 commits intotrunkfrom
jkmassel/fix-codeql-swift
Apr 2, 2026
Merged

ci: add CodeQL workflow with Swift analysis#412
jkmassel merged 5 commits intotrunkfrom
jkmassel/fix-codeql-swift

Conversation

@jkmassel
Copy link
Copy Markdown
Contributor

@jkmassel jkmassel commented Apr 2, 2026

Summary

  • Replaces the CodeQL default setup with a custom workflow (.github/workflows/codeql.yml) that scans all languages including Swift
  • The default setup used Linux runners which can't build this project's Swift package (requires Xcode/iOS SDK), so Swift was never being scanned
  • Swift analysis runs on macos-15 with Xcode 26.0.1 (Swift 6.2); JS, Kotlin, and Actions continue running on ubuntu-latest
  • The default CodeQL setup has been disabled via the API since custom and default setups cannot coexist

Test plan

  • Verified all 4 CodeQL jobs pass: actions (51s), javascript-typescript (1m10s), java-kotlin (7m10s), swift (15m46s)

🤖 Generated with Claude Code

The default CodeQL setup only runs on Linux runners, which can't build
this project's Swift package (requires Xcode/iOS SDK). This adds a
dedicated workflow using macos-15 runners with path filtering so it
only runs when Swift code changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added the [Type] Build Tooling Issues or PRs related to build tooling label Apr 2, 2026
jkmassel and others added 4 commits April 1, 2026 18:05
Allows manual triggering from the Actions tab for testing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove trailing newline to trigger the path-filtered workflow on this PR.
This can be reverted after verifying the workflow passes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The default CodeQL setup and custom workflows can't coexist, so this
replaces the default setup with a single workflow covering all languages.
Swift runs on macos-15 with Xcode 16.3 (for Swift 6.2); JS, Kotlin,
and Actions run on ubuntu-latest with autobuild.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Use Xcode 26.0.1 (Swift 6.2) instead of Xcode 16.3 (Swift 6.1)
- Disabled default CodeQL setup via API since custom and default
  workflows cannot coexist
- Reverted back to Swift-only + all-languages workflow

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-advanced-security
Copy link
Copy Markdown
Contributor

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@jkmassel jkmassel changed the title ci: add CodeQL workflow for Swift analysis ci: add CodeQL workflow with Swift analysis Apr 2, 2026
@jkmassel
Copy link
Copy Markdown
Contributor Author

jkmassel commented Apr 2, 2026

I'm going to admin-merge this to try to solve a GitHub warning about CodeQL

@jkmassel jkmassel merged commit 1503125 into trunk Apr 2, 2026
17 checks passed
@jkmassel jkmassel deleted the jkmassel/fix-codeql-swift branch April 2, 2026 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Build Tooling Issues or PRs related to build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants