Skip to content

Commit d4cbe29

Browse files
authored
Add explicit CodeQL workflow
1 parent 6ffa949 commit d4cbe29

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CodeQL
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
permissions:
12+
actions: read
13+
contents: read
14+
packages: read
15+
security-events: write
16+
17+
jobs:
18+
analyze:
19+
name: Analyze (${{ matrix.language }})
20+
runs-on: ubuntu-latest
21+
strategy:
22+
fail-fast: false
23+
max-parallel: 1
24+
matrix:
25+
include:
26+
- language: actions
27+
build-mode: none
28+
- language: javascript-typescript
29+
build-mode: none
30+
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@v6
34+
with:
35+
fetch-depth: 0
36+
37+
- name: Initialize CodeQL
38+
uses: github/codeql-action/init@v4
39+
with:
40+
build-mode: ${{ matrix.build-mode }}
41+
languages: ${{ matrix.language }}
42+
43+
- name: Perform CodeQL Analysis
44+
uses: github/codeql-action/analyze@v4
45+
with:
46+
category: /language:${{ matrix.language }}

0 commit comments

Comments
 (0)