From 34faeba5a76ceea2731c5620a396c0a2ddb112f9 Mon Sep 17 00:00:00 2001 From: Laura Date: Mon, 9 Jan 2023 17:59:25 -0800 Subject: Re Configure Code-Scanning.yml In accordance with this issue https://github.com/github/codeql-cli-binaries/issues/149 I have reconfigured to run code scanning on all PR's (to include text only changes) and adjusted the build command to build all solutions, not just the changed ones. --- .github/workflows/Code-Scanning.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/Code-Scanning.yml b/.github/workflows/Code-Scanning.yml index 3f9d1b7a..0c30f13e 100644 --- a/.github/workflows/Code-Scanning.yml +++ b/.github/workflows/Code-Scanning.yml @@ -1,5 +1,5 @@ # This workflow runs the latest CodeQL CLI and checks against CodeQL's Cpp library. -# It will only analyze solutions which have been changed. +# This is the source for the GitHub Security Code Scanning job. name: "CodeQL Analysis" @@ -14,12 +14,6 @@ on: - main - develop - # Do not perform analysis if only config or text files are changed - paths-ignore: - - '**/*.md' - - '**/*.txt' - - '.github/**' - # Allow manual scheduling workflow_dispatch: @@ -55,11 +49,10 @@ jobs: id: get-changed-files uses: tj-actions/changed-files@v27 - - name: Retrieve and build solutions from changed files - id: build-changed-projects + - name: Retrieve and build all available solutions + id: build-all-projects run: | - $changedFiles = "${{ steps.get-changed-files.outputs.all_changed_files }}".Split(' ') - .\.github\scripts\Build-ChangedProjects.ps1 -ChangedFiles $changedFiles + .\Build-AllProjects.ps1 env: Configuration: ${{ matrix.configuration }} Platform: ${{ matrix.platform }} -- cgit v1.3.1 From 1a9dffb3c5be9cd8b78f9630c9a1f3f1e5171b44 Mon Sep 17 00:00:00 2001 From: Laura Date: Tue, 10 Jan 2023 13:23:11 -0800 Subject: Remove capture of changed files Remove capture of changed files as they are unneeded in this workflow. We will build all files to create a baseline. --- .github/workflows/Code-Scanning.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/Code-Scanning.yml b/.github/workflows/Code-Scanning.yml index 0c30f13e..2993c393 100644 --- a/.github/workflows/Code-Scanning.yml +++ b/.github/workflows/Code-Scanning.yml @@ -45,10 +45,6 @@ jobs: - name: Add MSBuild to PATH uses: microsoft/setup-msbuild@v1.0.2 - - name: Get changed files - id: get-changed-files - uses: tj-actions/changed-files@v27 - - name: Retrieve and build all available solutions id: build-all-projects run: | -- cgit v1.3.1