atlas/.github/workflows/qodana.yml

45 lines
966 B
YAML
Raw Normal View History

2023-02-09 13:27:25 +01:00
name: Qodana
on:
workflow_dispatch:
pull_request_target:
branches:
- master
paths:
- "**.js"
- "**.sh"
- "**.py"
2023-02-09 13:27:25 +01:00
push:
branches:
- master
paths:
- "**.js"
- "**.sh"
- "**.py"
2023-02-09 13:27:25 +01:00
jobs:
qodana:
2023-03-17 18:37:26 +01:00
name: Qodana
2023-02-09 13:27:25 +01:00
runs-on: ubuntu-latest
if: github.repository_owner == 'placeAtlas'
permissions:
contents: write
pull-requests: write
checks: write
security-events: write
2023-02-09 13:27:25 +01:00
steps:
2023-03-17 18:37:26 +01:00
- name: Checkout code
uses: actions/checkout@v3
2023-02-09 13:27:25 +01:00
with:
fetch-depth: 0
2023-03-17 18:37:26 +01:00
- name: Check using Qodana
2023-02-09 13:41:26 +01:00
uses: JetBrains/qodana-action@main
2023-02-09 13:27:25 +01:00
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
2023-03-17 18:37:26 +01:00
- name: Upload results
uses: github/codeql-action/upload-sarif@v2
2023-02-09 13:41:26 +01:00
with:
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}