61 lines
1.6 KiB
YAML
Raw Normal View History

2024-04-10 09:26:54 -04:00
name: "CodeQL"
on:
push:
branches: [ master ]
2024-04-19 21:41:03 -04:00
paths-ignore:
- '**/README.md'
- '.github/ISSUE_TEMPLATE/**'
- 'docs/**'
- 'images/**'
- 'manifest.json'
2024-04-10 09:26:54 -04:00
pull_request:
branches: [ master ]
2024-04-19 21:41:03 -04:00
paths-ignore:
- '**/README.md'
- '.github/ISSUE_TEMPLATE/**'
- 'docs/**'
- 'images/**'
- 'manifest.json'
2024-04-10 09:26:54 -04:00
permissions: write-all
2024-04-10 09:43:55 -04:00
2024-04-10 09:26:54 -04:00
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
2024-09-28 00:59:05 +02:00
# This job will only run if the repository is public
if: ${{ github.event.repository.private == false }}
2024-04-10 09:26:54 -04:00
strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
steps:
2024-04-10 14:40:29 -04:00
- uses: actions/checkout@v4
2024-04-10 09:26:54 -04:00
- name: Setup .NET
2024-04-10 14:40:29 -04:00
uses: actions/setup-dotnet@v4
2024-04-10 09:26:54 -04:00
with:
2024-04-10 14:40:29 -04:00
dotnet-version: 8.0.x
2024-04-10 22:54:21 -04:00
- name: Install dependencies
2024-04-10 09:26:54 -04:00
run: |
dotnet nuget add source --username ${{ github.repository_owner }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name jellyfin-pre "https://nuget.pkg.github.com/jellyfin/index.json"
2024-04-10 09:26:54 -04:00
dotnet tool install --global dotnet-outdated-tool
dotnet outdated -pre Always -u -inc Jellyfin
- name: Initialize CodeQL
uses: github/codeql-action/init@e2b3eafc8d227b0241d48be5f425d47c2d750a13 # v3.26.10
2024-04-10 09:26:54 -04:00
with:
languages: ${{ matrix.language }}
queries: +security-extended
2024-09-28 00:59:05 +02:00
2024-04-10 09:26:54 -04:00
- name: Autobuild
uses: github/codeql-action/autobuild@e2b3eafc8d227b0241d48be5f425d47c2d750a13 # v3.26.10
2024-09-28 00:59:05 +02:00
2024-04-10 09:26:54 -04:00
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@e2b3eafc8d227b0241d48be5f425d47c2d750a13 # v3.26.10