Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/qodana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
persist-credentials: false

- name: Qodana Scan
uses: JetBrains/qodana-action@4861e015da555e86a72b862892aba6c2b93e6891 # Lukittu versioon v2026.1.3.
uses: JetBrains/qodana-action@b588768b6e7e6da579e518bc584f79de0d243692 # Lukittu versioon v2026.1.3.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

workflow_sha="$(rg -o 'JetBrains/qodana-action@[0-9a-f]{40}' .github/workflows/qodana.yml | cut -d@ -f2)"
test_sha="$(rg -o 'JetBrains/qodana-action@[0-9a-f]{40}' app/src/test/java/com/dbcheck/app/release/QodanaCiCompatibilityTest.kt | cut -d@ -f2)"

test "$workflow_sha" = "$test_sha"
git ls-remote https://github.com/JetBrains/qodana-action.git 'refs/tags/v2026.2.0' 'refs/tags/v2026.2.0^{}'

Repository: Insaner1980/dBcheck

Length of output: 157


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== workflow ==\n'
cat -n .github/workflows/qodana.yml | sed -n '20,32p'

printf '\n== compatibility test ==\n'
cat -n app/src/test/java/com/dbcheck/app/release/QodanaCiCompatibilityTest.kt | sed -n '1,120p'

printf '\n== extracted shas ==\n'
workflow_sha="$(rg -o 'JetBrains/qodana-action@[0-9a-f]{40}' .github/workflows/qodana.yml | cut -d@ -f2)"
test_sha="$(rg -o 'JetBrains/qodana-action@[0-9a-f]{40}' app/src/test/java/com/dbcheck/app/release/QodanaCiCompatibilityTest.kt | cut -d@ -f2)"
printf 'workflow_sha=%s\n' "$workflow_sha"
printf 'test_sha=%s\n' "$test_sha"

printf '\n== remote tags ==\n'
git ls-remote https://github.com/JetBrains/qodana-action.git 'refs/tags/v2026.2.0' 'refs/tags/v2026.2.0^{}' || true
git ls-remote https://github.com/JetBrains/qodana-action.git 'refs/tags/v2026.1.3' 'refs/tags/v2026.1.3^{}' || true

Repository: Insaner1980/dBcheck

Length of output: 5160


🏁 Script executed:

#!/bin/bash
set -euo pipefail

python3 - <<'PY'
from pathlib import Path
for p in [
    Path('.github/workflows/qodana.yml'),
    Path('app/src/test/java/com/dbcheck/app/release/QodanaCiCompatibilityTest.kt'),
]:
    print(f"\n== {p} ==")
    for i, line in enumerate(p.read_text().splitlines(), 1):
        if 'qodana-action' in line or 'v2026' in line or '4861e015' in line or 'b588768b6e7e6da579e518bc584f79de0d243692' in line:
            print(f"{i}: {line}")
PY

printf '\n== commit existence ==\n'
for sha in b588768b6e7e6da579e518bc584f79de0d243692 4861e015da555e86a72b862892aba6c2b93e6891; do
  if git ls-remote https://github.com/JetBrains/qodana-action.git "$sha" >/dev/null 2>&1; then
    echo "$sha reachable via ls-remote"
  else
    echo "$sha not directly reachable via ls-remote"
  fi
done

Repository: Insaner1980/dBcheck

Length of output: 665


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf 'workflow: '
rg -o 'JetBrains/qodana-action@[0-9a-f]{40}' .github/workflows/qodana.yml | cut -d@ -f2

printf 'test: '
rg -o 'JetBrains/qodana-action@[0-9a-f]{40}' app/src/test/java/com/dbcheck/app/release/QodanaCiCompatibilityTest.kt | cut -d@ -f2

printf '\nrefs for v2026.2.0:\n'
git ls-remote --tags https://github.com/JetBrains/qodana-action.git 'v2026.2.0' 'v2026.2.0^{}' || true

printf '\nrefs for v2026.1.3:\n'
git ls-remote --tags https://github.com/JetBrains/qodana-action.git 'v2026.1.3' 'v2026.1.3^{}' || true

Repository: Insaner1980/dBcheck

Length of output: 483


Update the Qodana version note and test expectation.

JetBrains/qodana-action@b588768b6e7e6da579e518bc584f79de0d243692 is the v2026.2.0 commit, so the inline note at line 26 is stale (v2026.1.3). app/src/test/java/com/dbcheck/app/release/QodanaCiCompatibilityTest.kt still hard-codes 4861e015da555e86a72b862892aba6c2b93e6891, so it no longer matches this workflow pin.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/qodana.yml at line 26, Update the inline version note for
the JetBrains/qodana-action pin to v2026.2.0, and update the expected commit
hash in QodanaCiCompatibilityTest to b588768b6e7e6da579e518bc584f79de0d243692 so
the workflow and compatibility test use the same pinned revision.

# Qodana/AGP 9.3.1 -yhteensopivuus pidetaan viela ei-blokkaavana; raportoi, mutta ala blokkaa PR:ia.
continue-on-error: true
env:
Expand Down
Loading