Skip to content

Commit

Permalink
Add scan pipelines (#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
dingmeng-xue authored Aug 28, 2020
1 parent 6382f03 commit e314d09
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
Empty file.
50 changes: 50 additions & 0 deletions .azure-pipelines/daily-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Please don't use ADO UI defined scheduled triggers because it takes precedence over YAML scheduled triggers.
# https://docs.microsoft.com/en-us/azure/devops/pipelines/process/scheduled-triggers
schedules:
- cron: "0 0 * * *"
displayName: Daily Midnight Build
branches:
include:
- master

trigger: none
pr: none

pool:
name: Hosted VS2017
demands: npm

steps:
- task: NodeTool@0
displayName: 'Use Node 10.16.0'
inputs:
versionSpec: 10.16.0

- task: Npm@1
displayName: 'Install autorest@beta'
inputs:
command: custom
verbose: false
customCommand: 'install -g "@autorest/autorest"'

- task: Npm@1
displayName: 'Install @microsoft/rush'
inputs:
command: custom
verbose: false
customCommand: 'install -g @microsoft/rush@5.12.0'

- task: CmdLine@2
displayName: 'Rush sync-versions'
inputs:
script: 'rush sync-versions'

- task: CmdLine@2
displayName: 'Rush Update'
inputs:
script: 'rush update'

- task: CmdLine@2
displayName: 'Rush Rebuild'
inputs:
script: 'rush rebuild'
15 changes: 15 additions & 0 deletions .azure-pipelines/security-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
trigger:
branches:
include:
- '*'

pool:
vmImage: "windows-2019"

steps:
- task: ms-codeanalysis.vss-microsoft-security-code-analysis-devops.build-task-credscan.CredScan@2
displayName: 'Run CredScan'
continueOnError: true
inputs:
toolMajorVersion: "V2"
suppressionsFile: .azure-pipelines\credscan-suppressions.json

0 comments on commit e314d09

Please sign in to comment.