Skip to content

Commit 077f943

Browse files
committed
ci: add scoped CodeQL analysis
1 parent a2d0af5 commit 077f943

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+
schedule:
11+
- cron: "41 8 * * 3"
12+
13+
jobs:
14+
analyze:
15+
name: Analyze (${{ matrix.language }})
16+
runs-on: ubuntu-latest
17+
permissions:
18+
actions: read
19+
contents: read
20+
security-events: write
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language:
25+
- actions
26+
- javascript-typescript
27+
- python
28+
- rust
29+
steps:
30+
- name: Checkout repository
31+
uses: actions/checkout@v6
32+
33+
- name: Initialize CodeQL
34+
uses: github/codeql-action/init@v4
35+
with:
36+
languages: ${{ matrix.language }}
37+
build-mode: none
38+
config: |
39+
paths-ignore:
40+
- tests/fixtures/rust/**
41+
- tests/stress/fixtures/src/rust/**
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)