From b2a60cb2bc1d577faa4dd04fdece1947591bdc2e Mon Sep 17 00:00:00 2001 From: Your tabikiji Date: Sun, 7 Sep 2025 01:37:36 +0900 Subject: [PATCH 1/9] Setup CodeQL workflow (JDK 21); build via assembleDebug -x test --- .github/workflows/codeql-analysis.yml | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/codeql-analysis.yml diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 000000000000..ddab17a5c24e --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,40 @@ +name: "CodeQL" + +on: + push: + branches: [ "**" ] + pull_request: + branches: [ "**" ] + schedule: + - cron: '0 4 * * 1' + workflow_dispatch: + +jobs: + analyze: + name: Analyze (Java/Kotlin) + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup JDK 21 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: '21' + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: java-kotlin + + - name: Build with Gradle + run: ./gradlew assembleDebug -x test + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 From 85c6899ed7559ec367f32d40659136c51786ceb7 Mon Sep 17 00:00:00 2001 From: Your tabikiji Date: Tue, 14 Oct 2025 21:56:12 +0900 Subject: [PATCH 2/9] CI: CodeQL fast PR profile (Fdroid compile-only, JDK17) --- .github/workflows/codeql-analysis.yml | 35 +++++++++++++++++---------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ddab17a5c24e..aa0dbbcf1ee4 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,17 +1,16 @@ -name: "CodeQL" +name: CodeQL (PR fast minimal) on: - push: - branches: [ "**" ] pull_request: - branches: [ "**" ] - schedule: - - cron: '0 4 * * 1' - workflow_dispatch: + paths-ignore: + - '**/*.md' + - 'docs/**' + - '**/*.png' + - '**/*.jpg' + workflow_dispatch: jobs: - analyze: - name: Analyze (Java/Kotlin) + codeql-pr-fast: runs-on: ubuntu-latest permissions: actions: read @@ -22,19 +21,29 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Setup JDK 21 + # 2. JDK17 + - name: Setup JDK 17 uses: actions/setup-java@v4 with: distribution: temurin - java-version: '21' + java-version: '17' + # 4. Init CodeQL(light query) - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: languages: java-kotlin + queries: security-extended + ram: 6144 + threads: 2 - - name: Build with Gradle - run: ./gradlew assembleDebug -x test + # 5. 軽量ビルド(APK生成なし / Play依存なし) + - name: Compile only (Fdroid Debug) + run: | + ./gradlew --no-daemon --max-workers=2 -x test -x lint :AnkiDroid:compileFdroidDebugSources + # 6. CodeQL Analysis - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 + with: + category: "/language:java-kotlin" \ No newline at end of file From 870661fbc51938fc91b0a330a577915f36efff6d Mon Sep 17 00:00:00 2001 From: Your tabikiji Date: Tue, 14 Oct 2025 22:44:27 +0900 Subject: [PATCH 3/9] modified name of task method --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/gradle.properties | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/gradle.properties diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index aa0dbbcf1ee4..240b88d4ed95 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -40,7 +40,7 @@ jobs: # 5. 軽量ビルド(APK生成なし / Play依存なし) - name: Compile only (Fdroid Debug) run: | - ./gradlew --no-daemon --max-workers=2 -x test -x lint :AnkiDroid:compileFdroidDebugSources + ./gradlew --no-daemon --max-workers=2 -x test -x lint :AnkiDroid:compilePlayDebugSources # 6. CodeQL Analysis - name: Perform CodeQL Analysis diff --git a/.github/workflows/gradle.properties b/.github/workflows/gradle.properties new file mode 100644 index 000000000000..80de907ecc26 --- /dev/null +++ b/.github/workflows/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx2g -Dfile.encoding=UTF-8 +org.gradle.workers.max=2 +kotlin.daemon.jvmargs=-Xmx2g \ No newline at end of file From 118e9e20d4d9dd33d4990ed4e6c22a6b263feba1 Mon Sep 17 00:00:00 2001 From: Your tabikiji Date: Sat, 18 Oct 2025 09:46:23 +0900 Subject: [PATCH 4/9] modified --- .github/workflows/codeql-analysis.yml | 15 ++++++++------- .github/workflows/gradle.properties | 3 ++- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 240b88d4ed95..e4c1d8fa32dd 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -18,32 +18,33 @@ jobs: security-events: write steps: + # 1. リポジトリ取得 - name: Checkout repository uses: actions/checkout@v4 - # 2. JDK17 + # 2. JDK 17 セットアップ(安定動作用) - name: Setup JDK 17 uses: actions/setup-java@v4 with: distribution: temurin java-version: '17' - # 4. Init CodeQL(light query) + # 3. CodeQL初期化(軽量クエリ) - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: languages: java-kotlin - queries: security-extended + queries: security-extended # 軽量かつ主要チェックのみ ram: 6144 threads: 2 - # 5. 軽量ビルド(APK生成なし / Play依存なし) - - name: Compile only (Fdroid Debug) + # 4. 軽量ビルド(APK生成なし・Play Debugフレーバー) + - name: Compile only (Play Debug) run: | ./gradlew --no-daemon --max-workers=2 -x test -x lint :AnkiDroid:compilePlayDebugSources - # 6. CodeQL Analysis + # 5. CodeQL解析実行 - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 with: - category: "/language:java-kotlin" \ No newline at end of file + category: "/language:java-kotlin" diff --git a/.github/workflows/gradle.properties b/.github/workflows/gradle.properties index 80de907ecc26..e8402e204e15 100644 --- a/.github/workflows/gradle.properties +++ b/.github/workflows/gradle.properties @@ -1,3 +1,4 @@ org.gradle.jvmargs=-Xmx2g -Dfile.encoding=UTF-8 org.gradle.workers.max=2 -kotlin.daemon.jvmargs=-Xmx2g \ No newline at end of file +kotlin.daemon.jvmargs=-Xmx2g +org.gradle.configuration-cache=true From 7ae73a7b323dbfca5b6350b6f01cf8c16b478445 Mon Sep 17 00:00:00 2001 From: tabikiji <64691336+tabikiji@users.noreply.github.com> Date: Sat, 18 Oct 2025 10:07:09 +0900 Subject: [PATCH 5/9] Add CodeQL analysis workflow configuration disabled default codeQL analysis so that codeQL can be run on customized setting --- .github/workflows/codeql.yml | 105 +++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 000000000000..6d9705ad890f --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,105 @@ +# 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: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: '34 23 * * 1' + +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: java-kotlin + build-mode: autobuild + - language: javascript-typescript + build-mode: none + - language: python + build-mode: none + # CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift' + # Use `c-cpp` to analyze code written in C, C++ or both + # Use 'java-kotlin' to analyze code written in Java, Kotlin or both + # Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both + # To learn more about changing the languages that are analyzed or customizing the build mode for your analysis, + # see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning. + # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how + # your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Add any setup steps before running the `github/codeql-action/init` action. + # This includes steps like installing compilers or runtimes (`actions/setup-node` + # or others). This is typically only required for manual builds. + # - name: Setup runtime (example) + # uses: actions/setup-example@v1 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + + # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + # queries: security-extended,security-and-quality + + # If the analyze step fails for one of the languages you are analyzing with + # "We were unable to automatically build your code", modify the matrix above + # to set the build mode to "manual" for that language. Then modify this step + # to build your code. + # ℹ️ Command-line programs to run using the OS shell. + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + - name: Run manual build steps + if: matrix.build-mode == 'manual' + shell: bash + run: | + echo 'If you are using a "manual" build mode for one or more of the' \ + 'languages you are analyzing, replace this with the commands to build' \ + 'your code, for example:' + echo ' make bootstrap' + echo ' make release' + exit 1 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v4 + with: + category: "/language:${{matrix.language}}" From 27d38a9b309d9d440a0e2f99c4881cc7a9626025 Mon Sep 17 00:00:00 2001 From: Your tabikiji Date: Sat, 18 Oct 2025 15:44:00 +0900 Subject: [PATCH 6/9] modefied --- .github/workflows/codeql-analysis.yml | 84 ++++++++++++++------------- 1 file changed, 44 insertions(+), 40 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e4c1d8fa32dd..991dbf7ad7af 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,50 +1,54 @@ -name: CodeQL (PR fast minimal) +name: "CodeQL Advanced" on: + push: + branches: [ "main" ] pull_request: - paths-ignore: - - '**/*.md' - - 'docs/**' - - '**/*.png' - - '**/*.jpg' - workflow_dispatch: + branches: [ "main" ] + schedule: + - cron: '34 23 * * 1' jobs: - codeql-pr-fast: - runs-on: ubuntu-latest + analyze: + name: Analyze (${{ matrix.language }}) + runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} permissions: + security-events: write + + packages: read + actions: read contents: read - security-events: write + + strategy: + fail-fast: false + matrix: + include: + - language: java-kotlin + build-mode: manual steps: - # 1. リポジトリ取得 - - name: Checkout repository - uses: actions/checkout@v4 - - # 2. JDK 17 セットアップ(安定動作用) - - name: Setup JDK 17 - uses: actions/setup-java@v4 - with: - distribution: temurin - java-version: '17' - - # 3. CodeQL初期化(軽量クエリ) - - name: Initialize CodeQL - uses: github/codeql-action/init@v3 - with: - languages: java-kotlin - queries: security-extended # 軽量かつ主要チェックのみ - ram: 6144 - threads: 2 - - # 4. 軽量ビルド(APK生成なし・Play Debugフレーバー) - - name: Compile only (Play Debug) - run: | - ./gradlew --no-daemon --max-workers=2 -x test -x lint :AnkiDroid:compilePlayDebugSources - - # 5. CodeQL解析実行 - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 - with: - category: "/language:java-kotlin" + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} + + if: matrix.build-mode == 'manual' + shell: bash + run: | + echo 'If you are using a "manual" build mode for one or more of the' \ + 'languages you are analyzing, replace this with the commands to build' \ + 'your code, for example:' + echo ' ./gradlew --no-daemon assembleDebug -x lint' + echo ' ./gradlew --no-daemon assembleRelease -x lint' + # You should replace the above example with the appropriate Gradle tasks + # for your project. Keep this step to perform the build required for CodeQL extraction. + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v4 + with: + category: "/language:${{matrix.language}}" \ No newline at end of file From 6b345cf74e2b4e796a8d0900fa4abb4313b0db28 Mon Sep 17 00:00:00 2001 From: tabikiji <64691336+tabikiji@users.noreply.github.com> Date: Sat, 18 Oct 2025 15:52:30 +0900 Subject: [PATCH 7/9] Fix YAML syntax error at line 41; remove scheduled trigger --- .github/workflows/codeql.yml | 98 ++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 000000000000..0755c0a0e974 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,98 @@ +# 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: [ "main" ] + pull_request: + branches: [ "main" ] + +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: + security-events: write + packages: read + actions: read + contents: read + + strategy: + fail-fast: false + matrix: + include: + - language: actions + build-mode: none + - language: java-kotlin + build-mode: autobuild + - language: javascript-typescript + build-mode: none + - language: python + build-mode: none + # CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift' + # Use `c-cpp` to analyze code written in C, C++ or both + # Use 'java-kotlin' to analyze code written in Java, Kotlin or both + # Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both + # To learn more about changing the languages that are analyzed or customizing the build mode for your analysis, + # see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning.customizing-your-advanced-setup-for-code-scanning. + # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how + # your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Add any setup steps before running the `github/codeql-action/init` action. + # This includes steps like installing compilers or runtimes (`actions/setup-node` + # or others). This is typically only required for manual builds. + # - name: Setup runtime (example) + # uses: actions/setup-example@v1 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + + # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-codeql + # queries: security-extended,security-and-quality + + # If the analyze step fails for one of the languages you are analyzing with + # "We were unable to automatically build your code", modify the matrix above + # to set the build mode to "manual" for that language. Then modify this step + # to build your code. + # ℹ️ Command-line programs to run using the OS shell. + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + - name: Run manual build steps + if: matrix.build-mode == 'manual' + shell: bash + run: | + echo 'If you are using a "manual" build mode for one or more of the' \ + 'languages you are analyzing, replace this with the commands to build' \ + 'your code, for example:' + echo ' make bootstrap' + echo ' make release' + exit 1 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v4 + with: + category: "/language:${{matrix.language}}" \ No newline at end of file From e26ddf778d70da2adaeec220e5f64be9952bd83e Mon Sep 17 00:00:00 2001 From: Your tabikiji Date: Sat, 18 Oct 2025 16:06:16 +0900 Subject: [PATCH 8/9] modefied syntax error --- .github/workflows/codeql-analysis.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 991dbf7ad7af..8e7b5b45b074 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -37,17 +37,6 @@ jobs: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} - if: matrix.build-mode == 'manual' - shell: bash - run: | - echo 'If you are using a "manual" build mode for one or more of the' \ - 'languages you are analyzing, replace this with the commands to build' \ - 'your code, for example:' - echo ' ./gradlew --no-daemon assembleDebug -x lint' - echo ' ./gradlew --no-daemon assembleRelease -x lint' - # You should replace the above example with the appropriate Gradle tasks - # for your project. Keep this step to perform the build required for CodeQL extraction. - - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v4 with: From 7ab5237881e566fdf64c7bd2da84d1b180744f21 Mon Sep 17 00:00:00 2001 From: Your tabikiji Date: Sat, 18 Oct 2025 16:30:42 +0900 Subject: [PATCH 9/9] modified --- .github/workflows/codeql.yml | 48 ++---------------------------------- 1 file changed, 2 insertions(+), 46 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 6d9705ad890f..8f406a2714e3 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,14 +1,3 @@ -# 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: @@ -22,20 +11,13 @@ on: 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 @@ -51,43 +33,17 @@ jobs: build-mode: none - language: python build-mode: none - # CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift' - # Use `c-cpp` to analyze code written in C, C++ or both - # Use 'java-kotlin' to analyze code written in Java, Kotlin or both - # Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both - # To learn more about changing the languages that are analyzed or customizing the build mode for your analysis, - # see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning. - # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how - # your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages + steps: - name: Checkout repository uses: actions/checkout@v4 - # Add any setup steps before running the `github/codeql-action/init` action. - # This includes steps like installing compilers or runtimes (`actions/setup-node` - # or others). This is typically only required for manual builds. - # - name: Setup runtime (example) - # uses: actions/setup-example@v1 - - # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v4 with: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - - # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs - # queries: security-extended,security-and-quality - # If the analyze step fails for one of the languages you are analyzing with - # "We were unable to automatically build your code", modify the matrix above - # to set the build mode to "manual" for that language. Then modify this step - # to build your code. - # ℹ️ Command-line programs to run using the OS shell. - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - name: Run manual build steps if: matrix.build-mode == 'manual' shell: bash