Fix qodana for PRs (#3040)

* Fix qodana for PRs

* Update code-quality.yml
This commit is contained in:
Łukasz Domeradzki 2023-10-18 23:51:35 +02:00 committed by GitHub
parent 32196a53cd
commit 71fa7560f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,12 +10,27 @@ jobs:
main:
runs-on: ubuntu-latest
permissions:
checks: write
contents: write
pull-requests: write
security-events: write
steps:
- name: Checkout code
if: github.event_name != 'pull_request'
uses: actions/checkout@v4.1.1
with:
show-progress: false
- name: Checkout code (for PR)
if: github.event_name == 'pull_request'
uses: actions/checkout@v4.1.1
with:
fetch-depth: 100 # History is required for pull request analysis
ref: ${{ github.event.pull_request.head.sha }} # To check out the actual pull request commit, not the merge commit
show-progress: false
- name: Run Qodana scan
uses: JetBrains/qodana-action@v2023.2.8
with: