ci(codeql): add python analysis job

This commit is contained in:
BukeLy 2026-05-27 02:30:06 +08:00
parent 346eb0aa4f
commit c13cb203cd

View file

@ -14,7 +14,7 @@ permissions:
actions: read
jobs:
analyze:
analyze-actions:
name: Analyze (actions)
runs-on: ubuntu-latest
timeout-minutes: 30
@ -32,3 +32,22 @@ jobs:
uses: github/codeql-action/analyze@v4
with:
category: /language:actions
analyze-python:
name: Analyze (python)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: python
build-mode: none
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: /language:python