Files
CommandForge/.github/workflows/codeql.yml
T
dependabot[bot] 873f1e8fea ci: Bump actions/checkout from 6 to 7
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-24 10:23:50 +00:00

46 lines
1.0 KiB
YAML

name: CodeQL
# Project-specific CodeQL (not the shared reusable codeql-csharp.yml): this is a WPF
# (net10.0-windows) app that only builds on Windows and uses a .slnx solution, whereas the
# reusable workflow runs on ubuntu and looks for a .sln.
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '37 14 * * 1' # Mondays 14:37 UTC
workflow_dispatch:
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
name: Analyze (csharp)
runs-on: windows-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: csharp
queries: security-extended
- name: Build
run: dotnet build CommandForge.slnx -c Release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:csharp"