Skip to content

Commit 23cbd41

Browse files
committedNov 24, 2024·
CodeQL config update
1 parent 8cd9838 commit 23cbd41

File tree

1 file changed

+2
-30
lines changed

1 file changed

+2
-30
lines changed
 

‎.github/workflows/codeql-analysis.yml

+2-30
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ on:
1111
jobs:
1212
analyze:
1313
name: Analyze (${{ matrix.language }})
14-
# Runner size impacts CodeQL analysis time. To learn more, please see:
15-
# - https://gh.io/recommended-hardware-resources-for-running-codeql
16-
# - https://gh.io/supported-runners-and-hardware-resources
17-
# - https://gh.io/using-larger-runners (GitHub.com only)
18-
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
19-
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
14+
runs-on: ubuntu-latest
2015
permissions:
2116
# required for all workflows
2217
security-events: write
@@ -34,14 +29,7 @@ jobs:
3429
include:
3530
- language: python
3631
build-mode: none
37-
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
38-
# Use `c-cpp` to analyze code written in C, C++ or both
39-
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
40-
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
41-
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
42-
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
43-
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
44-
# 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
32+
4533
steps:
4634
- name: Checkout repository
4735
uses: actions/checkout@v4
@@ -54,22 +42,6 @@ jobs:
5442
build-mode: ${{ matrix.build-mode }}
5543
config-file: .github/codeql-config.yml
5644

57-
# If the analyze step fails for one of the languages you are analyzing with
58-
# "We were unable to automatically build your code", modify the matrix above
59-
# to set the build mode to "manual" for that language. Then modify this step
60-
# to build your code.
61-
# ℹ️ Command-line programs to run using the OS shell.
62-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63-
- if: matrix.build-mode == 'manual'
64-
shell: bash
65-
run: |
66-
echo 'If you are using a "manual" build mode for one or more of the' \
67-
'languages you are analyzing, replace this with the commands to build' \
68-
'your code, for example:'
69-
echo ' make bootstrap'
70-
echo ' make release'
71-
exit 1
72-
7345
- name: Perform CodeQL Analysis
7446
uses: github/codeql-action/analyze@v3
7547
with:

0 commit comments

Comments
 (0)
Please sign in to comment.