-
Notifications
You must be signed in to change notification settings - Fork 756
63 lines (52 loc) · 1.74 KB
/
codeql.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: CodeQL
on:
push:
branches: [main]
workflow_dispatch:
permissions:
security-events: write
env:
CI: true
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
jobs:
codeql:
name: Run CodeQL Analysis
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
submodules: true
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: csharp, javascript
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Build All Projects
run: |
msbuild src/vs-bicep/BicepInVisualStudio.sln /restore /p:Configuration=Release /v:m /bl:./src/binlog/bicep_in_visual_studio_build.binlog
dotnet build --configuration release
npm --prefix src/vscode-bicep ci
npm --prefix src/vscode-bicep run build
npm --prefix src/playground ci
npm --prefix src/playground run build
npm --prefix src/Bicep.Cli.E2eTests ci
npm --prefix src/Bicep.Cli.E2eTests run build
npm --prefix src/Bicep.MSBuild.E2eTests ci
npm --prefix src/Bicep.MSBuild.E2eTests run build
npm --prefix src/textmate ci
npm --prefix src/textmate run build
npm --prefix src/highlightjs ci
npm --prefix src/highlightjs run build
npm --prefix src/monarch ci
npm --prefix src/monarch run build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3