Skip to content

Code scanning - action #74

Code scanning - action

Code scanning - action #74

name: "Code scanning - action"
on:
push:
pull_request:
schedule:
- cron: '0 18 * * 1'
jobs:
CodeQL-Build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
# Override language selection by uncommenting this and choosing your languages
with:
languages: csharp
- name: Setup MSBuild
uses: microsoft/[email protected]
- name: Setup NuGet
uses: NuGet/[email protected]
- name: add DevExpress nuget feed
run: dotnet nuget add source https://nuget.devexpress.com/api -n DXFeed -u DevExpress -p ${{ secrets.DEVEXPRESS_NUGET_KEY }} --store-password-in-clear-text
- name: Restore dependencies
run: nuget restore ea-modelkit.sln
- name: Build
run: msbuild ea-modelkit.sln -property:Configuration=CICD -property:platform="Any CPU" /p:RestorePackages=false
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3