Skip to content

Merge branch 'master' into devsecops #149

Merge branch 'master' into devsecops

Merge branch 'master' into devsecops #149

name: CodeQL Analysis
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 8 * * *'
jobs:
analyze:
name: codeql-analysis
runs-on: windows-latest
steps:
- name: Setup .NET
id: setup_dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Checkout repository
id: checkout_repo
uses: actions/checkout@v2
- name: Clean .NET cache
id: clean_dotnet_cache
shell: pwsh
run: |
dotnet clean ./ModernWpf.sln --configuration Release
dotnet nuget locals all --clear
- name: Install dependencies
id: dotnet_restore
shell: pwsh
run: |
dotnet restore
- name: Initialize CodeQL
id: init_codeql
uses: github/codeql-action/init@v1
with:
queries: security-and-quality
- name: Build
id: dotnet_build
shell: pwsh
run: |
dotnet build --configuration Release --no-restore
- name: Perform CodeQL Analysis
id: analyze_codeql
uses: github/codeql-action/analyze@v1
# Built with ❤ by [Pipeline Foundation](https://pipeline.foundation)