Files
wrong-notebook/.github/workflows/codeql.yml
2026-10-22 16:53:21 +08:00

44 lines
1.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# 每周一 03:00(北京时间)扫描一次,及时发现新公开的漏洞模式
- cron: '0 19 * * 0'
permissions:
contents: read
jobs:
analyze:
runs-on: ubuntu-latest
# 只在 GitHub 上运行;Gitea 读取 main 时会回退到本目录,需跳过
if: github.server_url == 'https://github.com'
name: Analyze (${{ matrix.language }})
permissions:
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
# Web 端与服务端、安卓壳(Java)、CI 工作流;均无需编译即可分析
language: [javascript-typescript, java-kotlin, actions]
steps:
- name: Checkout repository
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Initialize CodeQL
uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
with:
languages: ${{ matrix.language }}
build-mode: none
queries: security-extended
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
with:
category: /language:${{ matrix.language }}