Skip to content

Commit e314d09

Browse files
authored
Add scan pipelines (#681)
1 parent 6382f03 commit e314d09

File tree

3 files changed

+65
-0
lines changed

3 files changed

+65
-0
lines changed

.azure-pipelines/credscan-suppressions.json

Whitespace-only changes.

.azure-pipelines/daily-build.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Please don't use ADO UI defined scheduled triggers because it takes precedence over YAML scheduled triggers.
2+
# https://docs.microsoft.com/en-us/azure/devops/pipelines/process/scheduled-triggers
3+
schedules:
4+
- cron: "0 0 * * *"
5+
displayName: Daily Midnight Build
6+
branches:
7+
include:
8+
- master
9+
10+
trigger: none
11+
pr: none
12+
13+
pool:
14+
name: Hosted VS2017
15+
demands: npm
16+
17+
steps:
18+
- task: NodeTool@0
19+
displayName: 'Use Node 10.16.0'
20+
inputs:
21+
versionSpec: 10.16.0
22+
23+
- task: Npm@1
24+
displayName: 'Install autorest@beta'
25+
inputs:
26+
command: custom
27+
verbose: false
28+
customCommand: 'install -g "@autorest/autorest"'
29+
30+
- task: Npm@1
31+
displayName: 'Install @microsoft/rush'
32+
inputs:
33+
command: custom
34+
verbose: false
35+
customCommand: 'install -g @microsoft/[email protected]'
36+
37+
- task: CmdLine@2
38+
displayName: 'Rush sync-versions'
39+
inputs:
40+
script: 'rush sync-versions'
41+
42+
- task: CmdLine@2
43+
displayName: 'Rush Update'
44+
inputs:
45+
script: 'rush update'
46+
47+
- task: CmdLine@2
48+
displayName: 'Rush Rebuild'
49+
inputs:
50+
script: 'rush rebuild'

.azure-pipelines/security-scan.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
trigger:
2+
branches:
3+
include:
4+
- '*'
5+
6+
pool:
7+
vmImage: "windows-2019"
8+
9+
steps:
10+
- task: ms-codeanalysis.vss-microsoft-security-code-analysis-devops.build-task-credscan.CredScan@2
11+
displayName: 'Run CredScan'
12+
continueOnError: true
13+
inputs:
14+
toolMajorVersion: "V2"
15+
suppressionsFile: .azure-pipelines\credscan-suppressions.json

0 commit comments

Comments
 (0)