Skip to content

Commit 7a1c578

Browse files
authored
ci: add code scanning
1 parent 17da0d0 commit 7a1c578

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v6
25+
26+
# Initializes the CodeQL tools for scanning.
27+
- name: Initialize CodeQL
28+
uses: github/codeql-action/init@v4
29+
with:
30+
languages: javascript
31+
config: |
32+
paths-ignore:
33+
- '**/__tests__'
34+
- '**/test'
35+
36+
- name: Perform CodeQL Analysis
37+
uses: github/codeql-action/analyze@v4

0 commit comments

Comments
 (0)