68 lines
1.9 KiB
YAML
Raw Permalink Normal View History

2024-04-10 09:26:54 -04:00
name: "CodeQL"
on:
push:
2024-10-18 12:39:56 +02:00
branches:
2024-11-05 13:11:27 +00:00
- '*' # Triggers on any branch push
2024-04-19 21:41:03 -04:00
paths-ignore:
2024-10-06 19:03:15 +02:00
- "**/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:
2024-10-06 19:03:15 +02:00
language: ["csharp"]
2024-04-10 09:26:54 -04:00
steps:
2024-10-06 19:03:15 +02:00
- uses: actions/checkout@v4
2024-10-18 12:39:56 +02:00
- name: Check for BETA file
id: check-beta
run: |
if [ -f "BETA" ]; then
echo "IS_BETA=true" >> $GITHUB_ENV
else
echo "IS_BETA=false" >> $GITHUB_ENV
fi
2024-10-06 19:03:15 +02:00
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
2024-10-18 12:39:56 +02:00
- name: Restore Beta dependencies
if: ${{env.IS_BETA == 'true' }}
2024-10-06 19:03:15 +02: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"
dotnet tool install --global dotnet-outdated-tool
dotnet outdated -pre Always -u -inc Jellyfin
2024-10-18 12:39:56 +02:00
- name: Restore dependencies
if: ${{env.IS_BETA == 'false' }}
run: dotnet restore
2024-10-06 19:03:15 +02:00
- name: Initialize CodeQL
uses: github/codeql-action/init@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
2024-10-06 19:03:15 +02:00
with:
languages: ${{ matrix.language }}
queries: +security-extended
- name: Autobuild
uses: github/codeql-action/autobuild@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
2024-10-06 19:03:15 +02:00
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5