mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
Fix qodana for PRs (#3040)
* Fix qodana for PRs * Update code-quality.yml
This commit is contained in:
parent
32196a53cd
commit
71fa7560f7
1 changed files with 15 additions and 0 deletions
15
.github/workflows/code-quality.yml
vendored
15
.github/workflows/code-quality.yml
vendored
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue