Skip to content

Commit dc56c58

Browse files
committed
[qa] Fixed formatting of codeql.yml
1 parent 497c41a commit dc56c58

1 file changed

Lines changed: 46 additions & 46 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ name: "CodeQL Advanced"
1313

1414
on:
1515
push:
16-
branches: [ "master" ]
16+
branches: ["master"]
1717
pull_request:
18-
branches: [ "master" ]
18+
branches: ["master"]
1919
schedule:
20-
- cron: '37 2 * * 0'
20+
- cron: "37 2 * * 0"
2121

2222
jobs:
2323
analyze:
@@ -43,10 +43,10 @@ jobs:
4343
fail-fast: false
4444
matrix:
4545
include:
46-
- language: actions
47-
build-mode: none
48-
- language: javascript-typescript
49-
build-mode: none
46+
- language: actions
47+
build-mode: none
48+
- language: javascript-typescript
49+
build-mode: none
5050
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift'
5151
# Use `c-cpp` to analyze code written in C, C++ or both
5252
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
@@ -56,47 +56,47 @@ jobs:
5656
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
5757
# 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
5858
steps:
59-
- name: Checkout repository
60-
uses: actions/checkout@v4
59+
- name: Checkout repository
60+
uses: actions/checkout@v4
6161

62-
# Add any setup steps before running the `github/codeql-action/init` action.
63-
# This includes steps like installing compilers or runtimes (`actions/setup-node`
64-
# or others). This is typically only required for manual builds.
65-
# - name: Setup runtime (example)
66-
# uses: actions/setup-example@v1
62+
# Add any setup steps before running the `github/codeql-action/init` action.
63+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
64+
# or others). This is typically only required for manual builds.
65+
# - name: Setup runtime (example)
66+
# uses: actions/setup-example@v1
6767

68-
# Initializes the CodeQL tools for scanning.
69-
- name: Initialize CodeQL
70-
uses: github/codeql-action/init@v4
71-
with:
72-
languages: ${{ matrix.language }}
73-
build-mode: ${{ matrix.build-mode }}
74-
config-file: ./.github/codeql/codeql-config.yml
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.
68+
# Initializes the CodeQL tools for scanning.
69+
- name: Initialize CodeQL
70+
uses: github/codeql-action/init@v4
71+
with:
72+
languages: ${{ matrix.language }}
73+
build-mode: ${{ matrix.build-mode }}
74+
config-file: ./.github/codeql/codeql-config.yml
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.
7878

79-
# 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
80-
# queries: security-extended,security-and-quality
79+
# 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
80+
# queries: security-extended,security-and-quality
8181

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

0 commit comments

Comments
 (0)