Skip to content

ci: Add DuplicatedCode Qodana check #1

ci: Add DuplicatedCode Qodana check

ci: Add DuplicatedCode Qodana check #1

name: Qodana
on:
workflow_dispatch:
push:
branches: [ main, feature/** ]
pull_request:
branches: [ '**' ]
concurrency:
group: ${{ github.workflow }}${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
qodana:
runs-on: ubuntu-latest
permissions:
contents: read
# PR check
checks: write
# PR comments
pull-requests: write
# SARIF upload
security-events: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Maximize Build Space
if: runner.os == 'Linux'
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
large-packages: false
- name: 'Qodana Scan'
uses: JetBrains/[email protected]
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
with:
args:
--config,${{GITHUB_WORKSPACE}}/qodana-configs/duplicated-code/qodana.yaml,--baseline,${{GITHUB_WORKSPACE}}/qodana-configs/duplicated-code/qodana.sarif.yaml,--baseline-include-absent

Check failure on line 42 in .github/workflows/qodana-check-duplicatedcode.yml

View workflow run for this annotation

GitHub Actions / Qodana

Invalid workflow file

The workflow is not valid. .github/workflows/qodana-check-duplicatedcode.yml (Line: 42, Col: 13): Unrecognized named-value: 'GITHUB_WORKSPACE'. Located at position 1 within expression: GITHUB_WORKSPACE
cache-default-branch-only: true
- uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json