2023-02-08 19:57:36 +00:00
|
|
|
name: ASF-code-quality
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
env:
|
|
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
|
|
|
DOTNET_NOLOGO: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
main:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2023-09-04 17:19:48 +00:00
|
|
|
uses: actions/checkout@v4.0.0
|
|
|
|
with:
|
|
|
|
show-progress: false
|
2023-02-08 19:57:36 +00:00
|
|
|
|
|
|
|
- name: Run Qodana scan
|
2023-09-04 17:19:48 +00:00
|
|
|
uses: JetBrains/qodana-action@v2023.2.6
|
2023-05-11 07:46:51 +00:00
|
|
|
with:
|
|
|
|
args: --property=idea.headless.enable.statistics=false
|
2023-02-08 19:57:36 +00:00
|
|
|
env:
|
|
|
|
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
|
|
|
|
|
|
|
|
- name: Report Qodana results to GitHub
|
2023-08-28 19:26:41 +00:00
|
|
|
uses: github/codeql-action/upload-sarif@v2.21.5
|
2023-02-08 19:57:36 +00:00
|
|
|
with:
|
|
|
|
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json
|