Skip to content

Commit

Permalink
Added sdl_steps yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanann-ms committed Jun 12, 2023
1 parent 090546f commit 53f81db
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 30 deletions.
28 changes: 28 additions & 0 deletions vsts/common/sdl_steps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# SDL tasks
steps:
- task: CredScan@3
displayName: "Credential Scan"
inputs:
outputFormat: 'pre'
scanFolder: $(Build.SourcesDirectory)
- task: securedevelopmentteam.vss-secure-development-tools.build-task-policheck.PoliCheck@2
displayName: 'Run PoliCheck'
inputs:
targetType: F
- task: PostAnalysis@2
displayName: "SDL Analysis"
inputs:
AllTools: false
APIScan: false
BinSkim: false
CodesignValidation: false
CredScan: true
FortifySCA: false
FxCop: false
ModernCop: false
PoliCheck: true
RoslynAnalyzers: false
SDLNativeRules: false
Semmle: false
TSLint: false
ToolLogsNotFoundAction: 'Standard'
35 changes: 5 additions & 30 deletions vsts/node-nightly-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,33 +34,8 @@ stages:
displayName: 'SDL checks'
pool:
vmImage: 'windows-latest'
- steps:
- task: CredScan@3
displayName: "Credential Scan"
inputs:
outputFormat: 'pre'
scanFolder: $(Build.SourcesDirectory)
- task: securedevelopmentteam.vss-secure-development-tools.build-task-policheck.PoliCheck@2
displayName: 'Run PoliCheck'
inputs:
targetType: F
- task: PostAnalysis@2
displayName: "SDL Analysis"
inputs:
AllTools: false
APIScan: false
BinSkim: false
CodesignValidation: false
CredScan: true
FortifySCA: false
FxCop: false
ModernCop: false
PoliCheck: true
RoslynAnalyzers: false
SDLNativeRules: false
Semmle: false
TSLint: false
ToolLogsNotFoundAction: 'Standard'
steps:
- template: common/sdl_steps.yaml

- stage: Test
dependsOn: ['SDL']
Expand All @@ -74,9 +49,9 @@ stages:
- ImageOverride -equals $(vmImage)
steps:
- task: NodeTool@0
displayName: 'Use Node 14.x'
inputs:
versionSpec: '14.x'
displayName: 'Use Node 14.x'
inputs:
versionSpec: '14.x'

# Unit tests
- script: |
Expand Down

0 comments on commit 53f81db

Please sign in to comment.