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' ]
|
2024-02-03 21:10:36 +00:00
|
|
|
version: ['3.9']
|
2021-05-14 15:18:54 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2023-09-04 14:59:14 +00:00
|
|
|
uses: actions/checkout@v4
|
2021-05-14 15:18:54 +00:00
|
|
|
|
|
|
|
- name: Initialize CodeQL
|
2023-12-13 17:14:20 +00:00
|
|
|
uses: github/codeql-action/init@v3
|
2021-05-14 15:18:54 +00:00
|
|
|
with:
|
|
|
|
languages: ${{ matrix.language }}
|
|
|
|
queries: +security-and-quality
|
|
|
|
|
2023-06-29 18:52:05 +00:00
|
|
|
- name: Set up Python ${{ matrix.version }}
|
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
|
2023-12-13 17:14:20 +00:00
|
|
|
uses: github/codeql-action/autobuild@v3
|
2021-05-14 15:18:54 +00:00
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
2023-12-13 17:14:20 +00:00
|
|
|
uses: github/codeql-action/analyze@v3
|