-
Notifications
You must be signed in to change notification settings - Fork 34
/
azure-pipelines.yml
60 lines (54 loc) · 1.51 KB
/
azure-pipelines.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
trigger:
- main
variables:
Codeql.Enabled: true
strategy:
matrix:
Linux:
Pool: azsdk-pool-mms-ubuntu-2204-general
OsVmImage: ubuntu-22.04
TargetFolder: drop-linux
Windows:
Pool: azsdk-pool-mms-win-2022-general
OsVmImage: windows-2022
TargetFolder: drop
pool:
name: $(Pool)
vmImage: $(OSVmImage)
steps:
- script: npm ci
displayName: npm ci
- script: npm test
displayName: test
- script: npm pack
displayName: pack
- task: CopyFiles@2
displayName: 'Copy Files to: $(TargetFolder)'
inputs:
Contents: '*.tgz'
TargetFolder: $(TargetFolder)
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.SourcesDirectory)/$(TargetFolder)
artifactName: $(TargetFolder)
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2 # CredScan@2
inputs:
toolMajorVersion: 'V2'
condition: and(succeeded(), eq(variables['Agent.OS'],'Windows_NT')) # CredScan only supported on Windows
- task: securedevelopmentteam.vss-secure-development-tools.build-task-postanalysis.PostAnalysis@1 # PostAnalysis@1
inputs:
AllTools: false
APIScan: false
BinSkim: false
CodesignValidation: false
CredScan: true
FortifySCA: false
FxCop: false
ModernCop: false
PoliCheck: false
RoslynAnalyzers: false
SDLNativeRules: false
Semmle: false
TSLint: false
ToolLogsNotFoundAction: 'Standard'
condition: and(succeeded(), eq(variables['Agent.OS'],'Windows_NT')) # CredScan only supported on Windows