-
Notifications
You must be signed in to change notification settings - Fork 822
63 lines (52 loc) · 2 KB
/
Copy pathcodeql.yml
File metadata and controls
63 lines (52 loc) · 2 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
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
submodules: true
- name: Initialize CodeQL
uses: github/codeql-action/init@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4
with:
languages: csharp, javascript
- name: Setup .NET Core
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@30375c66a4eea26614e0d39710365f22f8b0af57 # v3
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
with:
node-version: 24
- 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@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4