forked from dotnet/docfx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines-v2-lgtm.yml
61 lines (52 loc) · 1.33 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
# 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
pool:
vmImage: 'windows-latest'
steps:
- task: CredScan@2
displayName: Security - CredScan
inputs:
toolMajorVersion: 'V2'
- task: Semmle@0
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:
CredScan: true
ToolLogsNotFoundAction: 'Standard'
- task: PublishSecurityAnalysisLogs@2
displayName: Security - Publish Scan Results
inputs:
ArtifactName: 'CodeAnalysisLogs'
ArtifactType: 'Container'
AllTools: true
ToolLogsNotFoundAction: 'Standard'
- task: PostAnalysis@1
displayName: Security - PostAnalysis
inputs:
CredScan: true
ToolLogsNotFoundAction: 'Standard'
- task: TSAUpload@1
inputs:
tsaVersion: 'TsaV2'
codebase: 'Existing'
tsaEnvironment: 'PROD'
codeBaseName: 'Docs_default'
uploadCredScan: true
uploadAsync: true