diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e364b16..c086334 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -17,11 +17,6 @@ jobs: contents: read security-events: write - strategy: - fail-fast: false - matrix: - language: [ 'csharp' ] - steps: - name: Checkout repository uses: actions/checkout@v4 @@ -70,9 +65,8 @@ jobs: if: steps.check-csharp.outputs.has-csharp == 'true' uses: github/codeql-action/init@v3 with: - languages: ${{ matrix.language }} - build-mode: none - + languages: csharp + - name: Setup .NET if: steps.check-csharp.outputs.has-csharp == 'true' uses: actions/setup-dotnet@v4 @@ -122,7 +116,7 @@ jobs: if: steps.check-csharp.outputs.has-csharp == 'true' uses: github/codeql-action/analyze@v3 with: - category: "/language:${{matrix.language}}" + category: "/language:csharp" - name: Complete Security Scan if: always() diff --git a/Directory.Build.props b/Directory.Build.props index 4edd70f..55feedd 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -43,7 +43,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive