Add CodeQL pipeline (#2)

This commit is contained in:
Aleksandar Ivanov 2021-06-03 14:05:39 +03:00 committed by GitHub
commit 153790e98c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

41
.github/workflows/codeql-analysis.yml vendored Normal file
View file

@ -0,0 +1,41 @@
name: CodeQL Analysis
on:
push:
pull_request:
schedule:
- cron: '0 8 * * *'
workflow_dispatch:
jobs:
analyze:
name: Analyze
runs-on: windows-latest
steps:
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- name: Checkout repository
id: checkout_repo
uses: actions/checkout@v2
- name: Initialize CodeQL
id: init_codeql
uses: github/codeql-action/init@v1
with:
languages: csharp
queries: security-and-quality
- name: Build solution
id: build_solution
run: |
nuget restore .\src\Calculator.sln
msbuild .\src\Calculator.sln `
/p:Configuration=Release `
/p:Platform=x64
- name: Perform CodeQL Analysis
id: analyze_codeql
uses: github/codeql-action/analyze@v1
# Built with ❤ by [Pipeline Foundation](https://pipeline.foundation)