Skip to content

ci: Add check-commits action #2253

ci: Add check-commits action

ci: Add check-commits action #2253

name: Qodana
on:
workflow_dispatch:
pull_request:
branches:
- master
permissions:
contents: read
jobs:
qodana:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: write
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2025.1
with:
pr-mode: true # 仅分析拉取请求中已更改的文件
args: --cleanup # --apply-fixes pr-mode: false
push-fixes: pull-request
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}