Skip to content

refactor(cscore): in-code-dokumentation und bridge-randfaelle stabilisieren #509

refactor(cscore): in-code-dokumentation und bridge-randfaelle stabilisieren

refactor(cscore): in-code-dokumentation und bridge-randfaelle stabilisieren #509

Workflow file for this run

name: qodana
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
jobs:
qodana:
# In untrusted PR contexts (forks, dependabot), repository secrets are unavailable.
if: github.event_name != 'pull_request' || (github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]')
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0
- name: Assert QODANA_TOKEN present
# Fail-closed in trusted CI contexts where Qodana is expected to run.
shell: bash
run: |
test -n "${QODANA_TOKEN:-}" || (echo "FAIL: QODANA_TOKEN missing" >&2; exit 1)
echo "OK: QODANA_TOKEN present"
- name: Setup .NET
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4
with:
dotnet-version: "10.0.102"
- name: Run Qodana
uses: JetBrains/qodana-action@42dad391966aca8ca344ca2340a7f43a5507e9b2 # v2025.3.1
with:
# gh-actions input is a single string; use --flag=value form to avoid passing a single argv containing a space.
args: --linter=jetbrains/qodana-dotnet:2025.3
results-dir: artifacts/ci/qodana
upload-result: false
use-caches: false
- name: Run Entry Check
if: always()
shell: bash
env:
# The job uploads the qodana artifact after this step; defer artifact-link rendering to avoid false-negative
# "artifact_not_found" failures when earlier steps fail.
CI_DEFER_ARTIFACT_LINK_RESOLUTION: "1"
run: bash tools/ci/bin/run.sh qodana
- name: Upload SARIF To Code Scanning
if: github.event_name != 'pull_request'
uses: github/codeql-action/upload-sarif@9e907b5e64f6b83e7804b09294d44122997950d6 # v4.32.3
with:
sarif_file: artifacts/ci/qodana/qodana.upload.sarif.json
- name: Upload Artifact
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: ci-qodana
path: artifacts/ci/qodana/
if-no-files-found: error