Extracts the app-agnostic plumbing proven in gclo 1.0 into four packages that every future KofTwentyTwo Windows app builds on: - KofTwentyTwo.AppKit: AppInfo identity, AppPaths, BuildVersion, crash-safe FileActivityLog with retention, LogTail, atomic SettingsStore<T> with ShellSettings, Credential Manager secret vault, IUserPrompter seam - KofTwentyTwo.AppKit.Updates: Velopack startup hook, never-throwing GitHub Releases update service with stable/dev channel selection, and the shared "check for updates" flow (UpdateCoordinator) - KofTwentyTwo.AppKit.WinUI / .Wpf: code-built splash overlay, About, live log viewer, crash net, theme and window helpers, dialog adapters The two framework-free packages are held to 100% line coverage (109 tests). WinUI and WPF sample apps exercise every service and are driven end to end by 12 FlaUI tests. BrandTool generates the vector mark and multi-size .ico. CI mirrors gclo's gates (zero warnings, coverage, UI tests, format, CodeQL, dependency review); the release workflow packs, checksums, attests build provenance, publishes a GitHub release, and pushes to nuget.org. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
56 lines
1.5 KiB
YAML
56 lines
1.5 KiB
YAML
# CodeQL static analysis for C#.
|
|
#
|
|
# C# is a compiled language, so CodeQL needs a real build. We use build-mode
|
|
# "manual" and run the same x64 solution build the CI workflow uses (without
|
|
# -warnaserror - the CI workflow already gates warnings; this workflow's job is
|
|
# security analysis, and it should still scan code that has a pending warning).
|
|
name: CodeQL
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
schedule:
|
|
# Weekly scan (Mondays 06:30 UTC) so new CodeQL queries run even when the
|
|
# code has not changed.
|
|
- cron: '30 6 * * 1'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze (csharp)
|
|
runs-on: windows-latest
|
|
timeout-minutes: 120
|
|
permissions:
|
|
# Required for github/codeql-action to upload scan results.
|
|
security-events: write
|
|
# Required to fetch public CodeQL packs.
|
|
packages: read
|
|
actions: read
|
|
contents: read
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Set up .NET SDK
|
|
uses: actions/setup-dotnet@v5
|
|
with:
|
|
global-json-file: global.json
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v4
|
|
with:
|
|
languages: csharp
|
|
build-mode: manual
|
|
|
|
- name: Build solution (x64)
|
|
run: dotnet build AppKit.slnx -p:Platform=x64
|
|
|
|
- name: Perform CodeQL analysis
|
|
uses: github/codeql-action/analyze@v4
|
|
with:
|
|
category: '/language:csharp'
|