@@ -141,3 +141,53 @@ jobs:
141
141
if : success() || failure() # always run even if the previous step fails
142
142
with :
143
143
report_paths : ' ./junit.xml'
144
+
145
+ analyze :
146
+ name : Analyze
147
+ runs-on : ubuntu-latest
148
+ permissions :
149
+ actions : read
150
+ contents : read
151
+ security-events : write
152
+
153
+ strategy :
154
+ fail-fast : false
155
+ matrix :
156
+ language : ['javascript', 'javascript-typescript']
157
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
158
+ # Learn more:
159
+ # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
160
+
161
+ steps :
162
+ - name : Checkout repository
163
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
164
+
165
+ # Initializes the CodeQL tools for scanning.
166
+ - name : Initialize CodeQL
167
+ uses : github/codeql-action/init@v3
168
+ with :
169
+ languages : ${{ matrix.language }}
170
+ config-file : ./.github/codeql/codeql-config.yml
171
+ # If you wish to specify custom queries, you can do so here or in a config file.
172
+ # By default, queries listed here will override any specified in a config file.
173
+ # Prefix the list here with "+" to use these queries and those in the config file.
174
+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
175
+
176
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
177
+ # If this step fails, then you should remove it and run the build manually (see below)
178
+ - name : Autobuild
179
+ uses : github/codeql-action/autobuild@v3
180
+
181
+ # ℹ️ Command-line programs to run using the OS shell.
182
+ # 📚 https://git.io/JvXDl
183
+
184
+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
185
+ # and modify them (or add more) to build your code if your project
186
+ # uses a compiled language
187
+
188
+ # - run: |
189
+ # make bootstrap
190
+ # make release
191
+
192
+ - name : Perform CodeQL Analysis
193
+ uses : github/codeql-action/analyze@v3
0 commit comments