diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 02acc0fd8..fe4b5c94b 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,36 +1,35 @@ name: "CodeQL" on: push: branches: [ main ] pull_request: branches: [ main ] schedule: - cron: '39 18 * * 3' workflow_dispatch: jobs: analyze: name: Analyze runs-on: ubuntu-latest permissions: actions: read contents: read security-events: write strategy: fail-fast: false matrix: language: [ 'csharp' ] steps: - name: Checkout repository uses: actions/checkout@v3 - name: Initialize CodeQL uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} - name: Build run: | - dotnet restore DisCatSharp.sln - dotnet build -c Release -v normal --no-restore DisCatSharp.sln + dotnet build -c Release -v minimal -f net7.0 --no-self-contained DisCatSharp.sln - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2