-
Notifications
You must be signed in to change notification settings - Fork 817
63 lines (52 loc) · 1.99 KB
/
codeql.yml
File metadata and controls
63 lines (52 loc) · 1.99 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
submodules: true
- name: Initialize CodeQL
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4
with:
languages: csharp, javascript
- name: Setup .NET Core
uses: actions/setup-dotnet@9a946fdbd5fb07b82b2f5a4466058b876ab72bb2 # v5
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@30375c66a4eea26614e0d39710365f22f8b0af57 # v3
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # 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@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4