qodana.yml runs JetBrains Qodana for .NET (qodana-dotnet, Rider's engine, Ultimate licence through the QODANA_TOKEN secret) on pushes to main, pull requests and by hand: - a `token` job skips fork and Dependabot runs without trusting actor names (as SonarCloud); - the `qodana` job runs on windows-latest, because WPF (net10.0-windows) only loads there: restore, a Release build (a failing build is one red step), then the action pinned by SHA (v2026.2.2) with pr-mode off, so pull requests and main are judged by the same list; - results go to Qodana Cloud, to annotations and a PR comment, and to the qodana-report artifact. It is advisory: not a required check. qodana.yaml holds every setting: native mode, the qodana.recommended profile without the Hints severity, app.manifest left out of XmlHighlighting, the solution and configuration, output folders excluded, and a gate of zero problems. Also: the CI-failure notifier watches Qodana; BUILD.md, RELEASING.md (QODANA_TOKEN), SECURITY.md and CONTRIBUTING.md describe it, and BUILD.md the Dependabot major-version rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
1.0 KiB
YAML
27 lines
1.0 KiB
YAML
name: Notify CI Failure
|
|
|
|
# Posts a Discord alert when the Build, SonarCloud or Qodana workflow fails on main (reuses the
|
|
# shared workflow in poli0981/.github). Requires repo secret DISCORD_CI_WEBHOOK.
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows: ["Build", "SonarCloud", "Qodana"]
|
|
types: [completed]
|
|
|
|
# The reusable workflow requests actions: read; without granting it here every run was a
|
|
# startup_failure (the repository default token is read-only for contents only).
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
|
|
jobs:
|
|
notify:
|
|
# The three workflows only run on `push` for main, so this limits alerts to main without trusting
|
|
# forgeable values (branch names, actor logins) — and skips pull-request runs (including
|
|
# Dependabot's), which have no access to the webhook secret anyway.
|
|
if: >-
|
|
github.event.workflow_run.conclusion == 'failure' &&
|
|
github.event.workflow_run.event == 'push'
|
|
uses: poli0981/.github/.github/workflows/notify-ci-failure.yml@c3e118a01d40e95b36b2c3466dc206638c11eb5a # main, 2026-07-06
|
|
secrets: inherit
|