2021-05-14 15:18:54 +00:00
|
|
|
name: CodeQL Analysis
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
schedule:
|
|
|
|
- cron: '38 8 * * 6'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: ${{ github.repository == 'jellyfin/jellyfin-kodi' }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
language: [ 'python' ]
|
|
|
|
version: ['2.7', '3.9']
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2022-03-09 21:07:21 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-05-14 15:18:54 +00:00
|
|
|
|
|
|
|
- name: Initialize CodeQL
|
2022-04-25 14:08:41 +00:00
|
|
|
uses: github/codeql-action/init@v2
|
2021-05-14 15:18:54 +00:00
|
|
|
with:
|
|
|
|
languages: ${{ matrix.language }}
|
|
|
|
queries: +security-and-quality
|
|
|
|
|
|
|
|
- name: Set up Python
|
2022-06-13 14:09:58 +00:00
|
|
|
uses: actions/setup-python@v4
|
2021-05-14 15:18:54 +00:00
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.version }}
|
|
|
|
|
|
|
|
- name: Autobuild
|
2022-04-25 14:08:41 +00:00
|
|
|
uses: github/codeql-action/autobuild@v2
|
2021-05-14 15:18:54 +00:00
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
2022-04-25 14:08:41 +00:00
|
|
|
uses: github/codeql-action/analyze@v2
|