All tests built with net10.0, project-under-test is referenced with s… #219
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "CodeQL Advanced" | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| paths: | |
| - src/** | |
| pull_request: | |
| branches: [ "main" ] | |
| types: [opened, synchronize, reopened] | |
| paths: | |
| - src/** | |
| schedule: | |
| - cron: '20 6 * * 5' | |
| jobs: | |
| analyze: | |
| name: Analyze | |
| runs-on: ubuntu-latest | |
| env: | |
| PROJECT_PATHS: >- # List of projects to analyze | |
| src/Ulid/Impl.csproj | |
| src/EFCore/EFCore.Impl.csproj | |
| src/LinqToDB/LinqToDB.Impl.csproj | |
| src/Dapper/Dapper.Impl.csproj | |
| permissions: | |
| actions: read # Allow GitHub Actions to read workflow files | |
| contents: read # Allow access to repository contents | |
| security-events: write # Allow writing security alerts to the Security tab | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: [ 'csharp' ] # Specify the language(s) to analyze | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v6 | |
| with: | |
| dotnet-version: | | |
| 10.x | |
| 9.x | |
| 8.x | |
| 7.x | |
| 6.x | |
| 5.x | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| languages: ${{ matrix.language }} | |
| config-file: ./.github/workflows/codeql/codeql-config.yml | |
| - name: Build the code | |
| run: | | |
| # Loop for restoring dependencies | |
| for project in ${{ env.PROJECT_PATHS }}; do | |
| echo "Restoring: $project" | |
| dotnet restore "$project" -p:Configuration=CI-Release | |
| done | |
| # Loop for building the projects | |
| for project in ${{ env.PROJECT_PATHS }}; do | |
| echo "Building: $project" | |
| dotnet build "$project" --configuration CI-Release --no-incremental | |
| done | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v4 | |
| with: | |
| category: "/language:${{matrix.language}}" |