-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (43 loc) · 1.29 KB
/
CodeQL_Example03_Csharp.yml
File metadata and controls
55 lines (43 loc) · 1.29 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
name: CodeQL Example03 Csharp
on:
# push:
# branches: [ main ]
pull_request:
branches: [ main ]
jobs:
Container_Example03_Csharp:
runs-on: 'Ubuntu-latest'
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [csharp]
container:
image: mcr.microsoft.com/dotnet/aspnet:7.0
#options: --cpu 2
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Install dependencies
run: |
apt-get update && apt-get upgrade -y --no-install-recommends && \
apt-get install -y wget && \
apt-get install -y curl
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Build with dotnet
working-directory: /__w/CodeQL_containerizedApp/CodeQL_containerizedApp/Example03_Csharp/WebGoatCore/
run: dotnet build WebGoatCore.csproj
# - name: Autobuild
# uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2