Files
softharbor/.gitea/workflows/qodana.yml
T
poli0981andClaude Opus 5.5 a0867d804c ci: move the workflows to Gitea Actions (D38)
The GitHub account is suspended, so nothing in .github/workflows runs and
Workers Builds, which pulled from GitHub, has stopped deploying. Following the
runbook (poli0981/.github docs/GITEA-MIGRATION.md §3) and its softharbor guide:

- Workflows live in .gitea/workflows, every action pinned to a SHA, explicit
  per-job permissions; the ops callers pin poli0981/.github v2026.11.2.
- ci.yml: SonarQube Cloud goes (D1); the Playwright report uses the Gitea
  artifact action; OSV in `gates` is the pinned osv-scanner binary; a new
  `deploy` job runs `wrangler deploy` on pushes to main and waits until
  production serves the build; a `record` job writes the dispatched run's
  build/gates results as commit statuses, which Gitea 28.4 does not.
- CodeQL → the ops security.yml (gitleaks, Opengrep, osv-scanner), Tuesday
  15:37 UTC. qodana.yml → the ops reusable-qodana.yml (Qodana CLI).
- quarantine, vt-recheck and link-check talk to Gitea through the new
  scripts/gitea.mjs (PRs, dispatches, issues, statuses) instead of gh and
  create-pull-request; their crons move into the runner's 13:00–16:00 UTC
  window (13:17, 13:59, Monday 14:43). vt-recheck previews print their diff.
- Renovate (renovate.json, the shared preset) replaces Dependabot; Gitea
  reads CODEOWNERS from .gitea/ with regular-expression patterns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:44:00 +07:00

39 lines
1.4 KiB
YAML

# docs/12 §2 — Qodana (D35): JetBrains' WebStorm-based analysis. Scope and the
# quality gate live in qodana.yaml (qodana-js, native mode, any finding fails).
#
# Since D38 it runs through the ops repo's reusable workflow (the Qodana CLI,
# pinned and checksum-verified): JetBrains/qodana-action needs GitHub's APIs,
# and Gitea has no code-scanning UI. The findings live in Qodana Cloud
# (project `softharbor`) and in the run's `qodana-report` artifact.
#
# Deliberately NOT a required check: a Qodana Cloud outage, or a licence that
# lapses (the Ultimate licence runs to 2026-12-31), must never block a merge.
# Runs started by renovate-bot skip the scan (the reusable's own guard): Gitea
# gives same-repo pull requests the secrets, and such a run installs the very
# update under review.
name: Qodana
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
qodana:
permissions:
contents: read
uses: poli0981/.github/.gitea/workflows/reusable-qodana.yml@8e6582af9a5846b4d8995b26b1421488d29d761b # ops v2026.11.2
with:
package-manager: pnpm # native mode resolves imports against this install
node-version-file: .nvmrc
prepare-command: pnpm exec astro sync # .astro/ types, which tsconfig includes
secrets:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}