Files
wrong-notebook/.github/workflows/codeql.yml
margrop 3a70f83bd9 ci: 升级 GitHub Actions 至 Node 24 运行时版本
checkout、setup-node、cache、upload/download-artifact、setup-java、
docker 系列与 action-gh-release 升级到最新大版本(仍按提交 SHA 固定);
发布不足两周的 docker/login-action 取 v4.6.0;
gradle/actions 停在 v5.0.2,避免 v6 缓存组件的商业许可条款。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 20:01:11 +08:00

44 lines
1.3 KiB
YAML
Raw Permalink 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- 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 }}