Skip to content

Commit fa8852e

Browse files
committed
Fix existing code scanning
1 parent 79c9ceb commit fa8852e

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

.github/workflows/codeql.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
fail-fast: false
4848
matrix:
4949
include:
50-
- language: actions
50+
- language: javascript
5151
build-mode: none
5252
- language: javascript-typescript
5353
build-mode: none

.github/workflows/tests.yml

+50
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,53 @@ jobs:
141141
if: success() || failure() # always run even if the previous step fails
142142
with:
143143
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

Comments
 (0)