diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 4ffde98..1f1bc5a 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -31,16 +31,9 @@ permissions: read-all jobs: analyze: name: Analyze - # Runner size impacts CodeQL analysis time. To learn more, please see: - # - https://gh.io/recommended-hardware-resources-for-running-codeql - # - https://gh.io/supported-runners-and-hardware-resources - # - https://gh.io/using-larger-runners - # Consider using larger runners for possible analysis time improvements. - runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} - timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} + runs-on: ubuntu-latest + permissions: - actions: read - contents: read security-events: write strategy: @@ -69,8 +62,8 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v3 + # - name: Autobuild + # uses: github/codeql-action/autobuild@v3 # ℹī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun @@ -82,6 +75,17 @@ jobs: # echo "Run, Build Application using script" # ./location_of_script_within_repo/buildscript.sh + - name: Setup .NET + uses: actions/setup-dotnet@v4 + + - name: Install dependencies + run: | + dotnet restore + dotnet tool restore + + - name: Build + run: dotnet build --configuration Release --no-restore + - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 with: