Skip to content

Commit 44aacdc

Browse files
committed
ci: add CodeQL security scanning workflow
1 parent af24232 commit 44aacdc

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: 🔐 CodeQL Security Scan
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
schedule:
9+
# Runs every Monday at 09:00 UTC
10+
- cron: '0 9 * * 1'
11+
12+
permissions:
13+
actions: read
14+
contents: read
15+
security-events: write
16+
17+
jobs:
18+
analyze:
19+
name: Analyze JavaScript/TypeScript
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- name: ⬇️ Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: 🔍 Initialize CodeQL
27+
uses: github/codeql-action/init@v3
28+
with:
29+
languages: javascript-typescript
30+
queries: security-extended,security-and-quality
31+
32+
- name: 🏗️ Autobuild
33+
uses: github/codeql-action/autobuild@v3
34+
35+
- name: 📊 Perform CodeQL Analysis
36+
uses: github/codeql-action/analyze@v3
37+
with:
38+
category: /language:javascript-typescript

0 commit comments

Comments
 (0)