Skip to content

Conversation

@marandaneto
Copy link
Member

@marandaneto marandaneto commented Jan 28, 2026

Changes

#skip-changelog

Adds a CodeQL Advanced workflow for automated security and code quality analysis.

Languages analyzed:

  • java-kotlin - For Android Kotlin code in /android/src/
  • swift - For iOS/macOS Swift code in /ios/ and /macos/
  • actions - For security analysis of GitHub Actions workflows

Notes:

  • Dart is not supported by CodeQL, but is already covered by dart analyze in the CI workflow
  • Swift analysis runs on macos-latest (required by CodeQL)
  • Uses security-and-quality queries for comprehensive analysis

Similar to: https://github.com/PostHog/posthog-android/blob/main/.github/workflows/codeql.yml

@marandaneto marandaneto requested a review from a team as a code owner January 28, 2026 15:12
@marandaneto
Copy link
Member Author

cant merge #269 without the custom codeql

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

if: matrix.language == 'swift'
working-directory: ./example
run: |
flutter build ios --simulator --no-codesign --config-only
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need this to generate the xcode project

@marandaneto marandaneto enabled auto-merge (squash) January 28, 2026 16:13
Copy link
Member

@Piccirello Piccirello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines +25 to +27
- language: swift
build-mode: manual
runner: macos-latest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use macos-14-xlarge if you want this to go way faster

@marandaneto marandaneto merged commit 0f9f6ef into main Jan 28, 2026
16 checks passed
@marandaneto marandaneto deleted the add-codeql-workflow branch January 28, 2026 22:23
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