Skip to content

Commit 34f6769

Browse files
authored
ci: add code scanning
1 parent 17da0d0 commit 34f6769

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CODE_SCANNING
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
paths-ignore:
9+
- '**/*.md'
10+
11+
jobs:
12+
codeql_build:
13+
name: Scan with CodeQL
14+
15+
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
16+
runs-on: ubuntu-latest
17+
18+
permissions:
19+
# required for all workflows
20+
security-events: write
21+
22+
# only required for workflows in private repositories
23+
actions: read
24+
contents: read
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v6
29+
30+
# Initializes the CodeQL tools for scanning.
31+
- name: Initialize CodeQL
32+
uses: github/codeql-action/init@v4
33+
with:
34+
languages: javascript
35+
config: |
36+
paths-ignore:
37+
- '**/__tests__'
38+
- '**/test'
39+
40+
- name: Perform CodeQL Analysis
41+
uses: github/codeql-action/analyze@v4

0 commit comments

Comments
 (0)