forked from dotnet/spark
-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (36 loc) · 985 Bytes
/
codeql-analysis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CodeQL Analysis
on:
push:
paths:
- 'src/csharp/**'
pull_request:
paths:
- 'src/csharp/**'
schedule:
- cron: '0 8 * * *'
workflow_dispatch:
jobs:
analyze:
name: CodeQL Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout repository
id: checkout_repo
uses: actions/checkout@v2
- name: Initialize CodeQL
id: init_codeql
uses: github/codeql-action/init@v1
with:
queries: security-and-quality
- name: Build projects
id: build_projects
shell: pwsh
run: |
Get-ChildItem -Path src/csharp/ -Filter *.csproj -Exclude *test* -Recurse -File | ForEach-Object {
dotnet build $PSItem.FullName `
--configuration Release
}
- name: Perform CodeQL Analysis
id: analyze_codeql
uses: github/codeql-action/analyze@v1
# Built with ❤ by [Pipeline Foundation](https://pipeline.foundation)