forked from dotnet/docfx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-v2-lgtm.yml
83 lines (72 loc) · 1.78 KB
/
azure-pipelines-v2-lgtm.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# This YAML is used for the docfx v2 LGTM CI (https://dev.azure.com/ceapex/Engineering/_build?definitionId=3920)
trigger:
batch: true
branches:
include:
- dev
- main
pr: none
variables:
LGTM.SnapshotIdentifiers: Build=Full
LGTM.SnapshotMetadata: Owner=OPSBuild
LGTM.UploadSnapshot: true
Semmle.SkipAnalysis: true
pool:
vmImage: 'windows-latest'
steps:
- task: CredScan@2
displayName: Security - CredScan
inputs:
toolMajorVersion: 'V2'
- task: BinSkim@3
displayName: Security - BinSkim
inputs:
InputType: 'Basic'
Function: 'analyze'
AnalyzeTarget: >
**/*.exe;
**/*.dll;
- task: Semmle@0
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
displayName: Security - LGTM
inputs:
toolVersion: 'LatestPreRelease'
sourceCodeDirectory: '$(Build.SourcesDirectory)'
language: 'csharp'
cleanupBuildCommands: 'dotnet clean'
buildCommands: 'dotnet build docfx.sln'
querySuite: 'Required'
timeout: '7200'
ram: '16384'
addProjectDirToScanningExclusionList: true
- task: SdtReport@1
displayName: Security - SdtReport
inputs:
Semmle: true
CredScan: true
BinSkim: true
ToolLogsNotFoundAction: 'Standard'
- task: PublishSecurityAnalysisLogs@2
displayName: Security - Publish Scan Results
inputs:
ArtifactName: 'CodeAnalysisLogs'
ArtifactType: 'Container'
AllTools: true
ToolLogsNotFoundAction: 'Standard'
- task: TSAUpload@1
inputs:
tsaVersion: 'TsaV2'
tsaEnvironment: 'PROD'
codeBaseName: 'Docs_default_v2'
uploadCredScan: true
uploadBinSkim: true
uploadSemmle: true
uploadAsync: true
- task: PostAnalysis@1
displayName: Security - PostAnalysis
inputs:
Semmle: true
CredScan: true
BinSkim: true
ToolLogsNotFoundAction: 'Standard'