From 345665578852189f4e8e263a62966234212bbefc Mon Sep 17 00:00:00 2001 From: greg Date: Fri, 14 Jun 2024 15:44:43 -0400 Subject: [PATCH 1/2] Update codeql.yml --- .github/workflows/codeql.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index af67a5c..5b62546 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -45,7 +45,7 @@ jobs: matrix: include: - language: csharp - build-mode: autobuild + build-mode: manual - language: javascript-typescript build-mode: none # CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' @@ -80,14 +80,16 @@ jobs: # â„šī¸ 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 - if: matrix.build-mode == 'manual' - shell: bash - run: | - echo 'If you are using a "manual" build mode for one or more of the' \ - 'languages you are analyzing, replace this with the commands to build' \ - 'your code, for example:' - echo ' make bootstrap' - echo ' make release' - exit 1 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '3.1' # Specify your .NET Core version here + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --configuration Release --no-restore + - name: Test + run: dotnet test --no-restore --verbosity normal - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 From 6d258facf4524bbf713c2042593756cf33f371c6 Mon Sep 17 00:00:00 2001 From: greg Date: Fri, 14 Jun 2024 15:46:32 -0400 Subject: [PATCH 2/2] Only run CodeQL manually --- .github/workflows/codeql.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 5b62546..db40e28 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -12,12 +12,7 @@ name: "CodeQL" on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - schedule: - - cron: '38 2 * * 4' + workflow_dispatch: jobs: analyze: