intro-skipper/.github/workflows/codeql-analysis.yml

46 lines
944 B
YAML
Raw Normal View History

2020-12-15 22:03:34 +01:00
name: Run CodeQL
on:
push:
branches: [ master ]
2021-12-14 07:44:50 -07:00
paths-ignore:
- '**/*.md'
2020-12-15 22:03:34 +01:00
pull_request:
branches: [ master ]
2021-12-14 07:44:50 -07:00
paths-ignore:
- '**/*.md'
2020-12-15 22:03:34 +01:00
schedule:
- cron: '24 2 * * 4'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
2021-12-14 07:44:50 -07:00
if: github.repository == 'jellyfin/jellyfin-plugin-template'
2020-12-15 22:03:34 +01:00
strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
2021-12-14 07:44:50 -07:00
dotnet-version: 6.0.x
2020-12-15 22:03:34 +01:00
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
queries: +security-and-quality
- name: Autobuild
uses: github/codeql-action/autobuild@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1