-
Notifications
You must be signed in to change notification settings - Fork 0
Create codeql.yml #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,107 @@ | ||||||
| # For most projects, this workflow file will not need changing; you simply need | ||||||
| # to commit it to your repository. | ||||||
| # | ||||||
| # You may wish to alter this file to override the set of languages analyzed, | ||||||
| # or to provide custom queries or build logic. | ||||||
| # | ||||||
| # ******** NOTE ******** | ||||||
| # We have attempted to detect the languages in your repository. Please check | ||||||
| # the `language` matrix defined below to confirm you have the correct set of | ||||||
| # supported CodeQL languages. | ||||||
| # | ||||||
| name: "CodeQL Advanced" | ||||||
|
|
||||||
| on: | ||||||
| push: | ||||||
| branches: [ "master", "default" ] | ||||||
| pull_request: | ||||||
| branches: [ "master", "default" ] | ||||||
| schedule: | ||||||
| - cron: '19 2 * * 3' | ||||||
|
|
||||||
| jobs: | ||||||
| analyze: | ||||||
| name: Analyze (${{ matrix.language }}) | ||||||
| # Runner size impacts CodeQL analysis time. To learn more, please see: | ||||||
| # - https://gh.io/recommended-hardware-resources-for-running-codeql | ||||||
| # - https://gh.io/supported-runners-and-hardware-resources | ||||||
| # - https://gh.io/using-larger-runners (GitHub.com only) | ||||||
| # Consider using larger runners or machines with greater resources for possible analysis time improvements. | ||||||
| runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} | ||||||
| permissions: | ||||||
| # required for all workflows | ||||||
| security-events: write | ||||||
|
|
||||||
| # required to fetch internal or private CodeQL packs | ||||||
| packages: read | ||||||
|
|
||||||
| # only required for workflows in private repositories | ||||||
| actions: read | ||||||
| contents: read | ||||||
|
|
||||||
| strategy: | ||||||
| fail-fast: false | ||||||
| matrix: | ||||||
| include: | ||||||
| - language: actions | ||||||
| build-mode: none | ||||||
| - language: c-cpp | ||||||
| build-mode: autobuild | ||||||
|
||||||
| build-mode: autobuild | |
| build-mode: manual |
Copilot
AI
Jan 14, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The java-kotlin language is configured with autobuild mode, but this repository only contains a few example Java files in the example/android directory for testing purposes. This is primarily a C++ project with Python, JavaScript/TypeScript support. Including java-kotlin may not be necessary and could cause unnecessary build overhead or failures. Consider removing this language entry unless CodeQL analysis of the Android example code is specifically needed.
| - language: java-kotlin | |
| build-mode: autobuild |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The branch name "default" does not exist in this repository. Based on other workflows in the repository, only the "master" branch is used as the main branch. Remove "default" from both push and pull_request branch configurations to avoid the workflow not triggering as expected.