Skip to content

CodeQL

CodeQL #313

## original file was auto generated
## but was then customised for this specific project
##
name: "CodeQL"
on:
push:
branches: [ master, develop-pancakeslp ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master, develop-pancakeslp ]
schedule:
# Run at 07:37 AM, every Friday
- cron: '37 7 * * 5'
jobs:
analyze:
name: Analyze
## Environment variable
#env:
# HELLO: 'WORLD'
permissions:
actions: read
contents: read
security-events: write
## For a list of available runner types, refer to
## https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
## TLDR choice of ubuntu-latest, windows-latest, and macos-latest
## 2023.04.16 "windows-latest" yields "Windows Server 2022"
## it seems we have some dotnet framework 4.6.1 dependencies
## and Windows Server 2022 doesnt include 4.6.1 dependencies
## TODO once we have removed these dependencies we should retry windows-latest
runs-on: windows-2019
#runs-on: windows-latest
strategy:
fail-fast: true
matrix:
language: [ 'csharp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
- name: Initialize CodeQL tools for scanning.
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Run ./build.ps1
run: |
powershell ./build.ps1 -execTest FALSE -execGenerateArtefact FALSE
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3