-
Notifications
You must be signed in to change notification settings - Fork 1
79 lines (70 loc) · 2.09 KB
/
Copy pathcodeql.yml
File metadata and controls
79 lines (70 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: CodeQL Security Analysis
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Run weekly on Mondays at 04:00 UTC
- cron: '0 4 * * 1'
workflow_dispatch: {}
jobs:
analyze-python:
name: Analyze Python (agents + MCP + SDK)
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ['python']
steps:
- uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# Use the default security-extended query suite for deeper analysis
queries: security-extended,security-and-quality
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Python deps (for CodeQL to trace imports)
run: |
pip install --upgrade pip
pip install groq fastapi "uvicorn[standard]" pydantic httpx aiohttp
pip install opentelemetry-api opentelemetry-sdk
pip install fastmcp pycspr
pip install -e sdk/
continue-on-error: true
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"
analyze-javascript:
name: Analyze JavaScript/TypeScript (x402 + MCP + dashboard)
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ['javascript-typescript']
steps:
- uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: security-extended,security-and-quality
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"