mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
Add CodeQL pipeline (#2)
This commit is contained in:
parent
318fe4b83f
commit
153790e98c
1 changed files with 41 additions and 0 deletions
41
.github/workflows/codeql-analysis.yml
vendored
Normal file
41
.github/workflows/codeql-analysis.yml
vendored
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue