-
Notifications
You must be signed in to change notification settings - Fork 29
/
mscredscan-pipeline.yml
78 lines (71 loc) · 2 KB
/
mscredscan-pipeline.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
# NOTE: CredScan is deprecated in favour of the Microsoft Security DevOps extension
trigger: none
pr: none
pool:
vmImage: "windows-latest"
variables:
- group: SecureVariables
stages:
- stage: QualityCheck
displayName: Quality Checks
jobs:
- job: CredScanJob
displayName: "CredScan Job"
steps:
- task: UseDotNet@2
displayName: "Use .NET Core 7.0"
inputs:
packageType: "sdk"
version: "7.0.x"
- task: CredScan@2
displayName: Execute CredScan
inputs:
toolMajorVersion: 'V2'
toolVersion: 'latest'
outputFormat: 'sarif'
suppressionsFile: '$(Build.Repository.LocalPath)/suppressions.json'
- task: PostAnalysis@1
displayName: Post Analysis
condition: always()
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'
- task: PublishSecurityAnalysisLogs@2
displayName: Publish Security Analysis Logs
condition: always()
inputs:
ArtifactName: 'CodeAnalysisLogs'
ArtifactType: 'Container'
AllTools: true
ToolLogsNotFoundAction: 'Standard'
- task: SdtReport@1
displayName: Create Security Analysis Report
condition: always()
inputs:
AllTools: false
APIScan: false
BinSkim: false
CodesignValidation: false
CredScan: true
FortifySCA: false
FxCop: false
ModernCop: false
MSRD: false
PoliCheck: false
RoslynAnalyzers: false
SDLNativeRules: false
Semmle: false
TSLint: false
ToolLogsNotFoundAction: 'Standard'