Skip to content

Commit 984645a

Browse files
committed
Update codeql.yml
yamllint
1 parent deaa81a commit 984645a

1 file changed

Lines changed: 58 additions & 49 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 58 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ jobs:
3131
# - https://gh.io/recommended-hardware-resources-for-running-codeql
3232
# - https://gh.io/supported-runners-and-hardware-resources
3333
# - https://gh.io/using-larger-runners (GitHub.com only)
34-
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
34+
# Consider using larger runners or machines with greater resources for
35+
# possible analysis time improvements.
3536
runs-on: 'ubuntu-latest'
3637
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
3738
permissions:
@@ -49,56 +50,64 @@ jobs:
4950
fail-fast: false
5051
matrix:
5152
include:
52-
- language: javascript-typescript
53-
build-mode: none
54-
- language: python
55-
build-mode: none
56-
# CodeQL supports the following values keywords for 'language':
57-
# 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
58-
# Use `c-cpp` to analyze code written in C, C++ or both
59-
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
60-
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
61-
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis, see:
62-
# https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning
63-
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how your codebase is analyzed, see:
64-
# https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
53+
- language: javascript-typescript
54+
build-mode: none
55+
- language: python
56+
build-mode: none
57+
# CodeQL supports the following values keywords for 'language':
58+
# 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript',
59+
# 'python', 'ruby', 'swift'
60+
# Use `c-cpp` to analyze code written in C, C++ or both
61+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
62+
# Use 'javascript-typescript' to analyze code written in JavaScript,
63+
# TypeScript or both
64+
# To learn more about changing the languages that are analyzed or
65+
# customizing the build mode for your analysis, see:
66+
# https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning
67+
# If you are analyzing a compiled language, you can modify the
68+
# 'build-mode' for that language to customize how your codebase is
69+
# analyzed, see:
70+
# https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
6571
steps:
66-
- name: Checkout repository
67-
uses: actions/checkout@v4
72+
- name: Checkout repository
73+
uses: actions/checkout@v4
6874

69-
# Initializes the CodeQL tools for scanning.
70-
- name: Initialize CodeQL
71-
uses: github/codeql-action/init@v3
72-
with:
73-
languages: ${{ matrix.language }}
74-
build-mode: ${{ matrix.build-mode }}
75-
# If you wish to specify custom queries, you can do so here or in a config file.
76-
# By default, queries listed here will override any specified in a config file.
77-
# Prefix the list here with "+" to use these queries and those in the config file.
75+
# Initializes the CodeQL tools for scanning.
76+
- name: Initialize CodeQL
77+
uses: github/codeql-action/init@v3
78+
with:
79+
languages: ${{ matrix.language }}
80+
build-mode: ${{ matrix.build-mode }}
81+
# If you wish to specify custom queries, you can do so here or in a
82+
# config file.
83+
# By default, queries listed here will override any specified in a
84+
# config file.
85+
# Prefix the list here with "+" to use these queries and those in the
86+
# config file.
7887

79-
# For more details on CodeQL's query packs, refer to:
80-
# 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
81-
# queries: security-extended,security-and-quality
88+
# For more details on CodeQL's query packs, refer to:
89+
# 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
90+
# queries: security-extended,security-and-quality
8291

83-
# If the analyze step fails for one of the languages you are analyzing with
84-
# "We were unable to automatically build your code", modify the matrix above
85-
# to set the build mode to "manual" for that language. Then modify this step
86-
# to build your code.
87-
# Command-line programs to run using the OS shell; see:
88-
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
89-
- name: Manual build message
90-
if: matrix.build-mode == 'manual'
91-
shell: bash
92-
run: |
93-
echo ''
94-
echo 'If you are using a "manual" build mode for one or more of the' \
95-
'languages you are analyzing, replace this with the commands to build' \
96-
'your code, for example:'
97-
echo ' make bootstrap'
98-
echo ' make release'
99-
exit 1
92+
# If the analyze step fails for 1 of the languages you are analyzing with
93+
# "We were unable to automatically build your code", modify the matrix
94+
# above to set the build mode to "manual" for that language. Then modify
95+
# this step to build your code.
96+
# Command-line programs to run using the OS shell; see:
97+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
98+
- name: Manual build message
99+
if: matrix.build-mode == 'manual'
100+
shell: bash
101+
run: |
102+
echo ''
103+
echo 'If you are using a "manual" build mode for one or more of the' \
104+
'languages you are analyzing, replace this with the commands to' \
105+
'build your code, for example:'
106+
echo ' make bootstrap'
107+
echo ' make release'
108+
exit 1
100109
101-
- name: Perform CodeQL Analysis
102-
uses: github/codeql-action/analyze@v3
103-
with:
104-
category: "/language:${{matrix.language}}"
110+
- name: Perform CodeQL Analysis
111+
uses: github/codeql-action/analyze@v3
112+
with:
113+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)