Skip to content

Commit

Permalink
ci: update codeql job
Browse files Browse the repository at this point in the history
  • Loading branch information
Sv443 committed Nov 24, 2024
1 parent 420a500 commit 4acb812
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/lint-and-analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ on:
jobs:
lint:
name: Lint Code

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [22.x]
Expand All @@ -26,20 +28,30 @@ jobs:

analyze:
name: Analyze Code

runs-on: ubuntu-latest

permissions:
actions: read
contents: read
security-events: write

strategy:
matrix:
language: ["javascript"]
language: ["javascript-typescript"]
# CodeQL supports "c-cpp", "csharp", "go", "java-kotlin", "javascript-typescript", "python", "ruby", "swift"
# Learn more:
# 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

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

0 comments on commit 4acb812

Please sign in to comment.