-
Notifications
You must be signed in to change notification settings - Fork 29
36 lines (30 loc) · 1.15 KB
/
check-changed-files.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Check-changed-files
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
actions: read
jobs:
qodana:
runs-on: ubuntu-latest
steps:
- name: Fetch Sources
uses: actions/checkout@v4
with:
fetch-depth: ${{ github.event.pull_request.commits }}
- name: Get two more commits so Qodana we can identify the changes
if: github.event_name == 'pull_request'
run: git fetch --deepen=2
- name: Run Qodana inspection
uses: JetBrains/qodana-action@v2024.3.4
with:
upload-result: true
args: >
--baseline,doc/qodana-baseline.sarif.json,
--config,.qodana/qodana.yaml
# This step uploads the SARIF file to GitHub so that the code scanning feature can use it.
# https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github#example-workflow-that-runs-the-eslint-analysis-tool
- name: Upload SARIF report to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json