Skip to content

Restore gender filtering for SecAgent draws #932

Restore gender filtering for SecAgent draws

Restore gender filtering for SecAgent draws #932

Workflow file for this run

name: CodeQL 扫描
on:
push:
pull_request:
schedule:
- cron: "0 3 * * 1"
jobs:
analyze:
name: CodeQL 分析
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- language: csharp
build-mode: manual
- language: actions
build-mode: none
permissions:
actions: read
contents: read
security-events: write
steps:
- name: 检出仓库
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
ref: ${{ github.ref }}
- name: 安装 .NET SDK
if: ${{ matrix.language == 'csharp' }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: 还原工作负载
if: ${{ matrix.language == 'csharp' }}
run: dotnet workload restore
- name: 还原解决方案
if: ${{ matrix.language == 'csharp' }}
run: dotnet restore ./SecRandom.Desktop/SecRandom.Desktop.csproj
- name: 初始化 CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- name: 构建
if: ${{ matrix.language == 'csharp' }}
run: dotnet build ./SecRandom.Desktop/SecRandom.Desktop.csproj -c Release -p:BuildInParallel=false
- name: 执行 CodeQL 分析
uses: github/codeql-action/analyze@v4