forked from WebGoat/WebGoat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
51 lines (51 loc) · 2.03 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
trigger:
- develop
pool:
vmImage: ubuntu-latest
resources:
repositories:
- repository: AzureBoardsScript
ref: master
type: git
name: Implementations
variables:
- group: polaris-Kyle
steps:
- task: JavaToolInstaller@0
inputs:
versionSpec: '17'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- checkout: self
#- task: CmdLine@2
# inputs:
# script: |
# curl -fLsS -o bridge.zip $BRIDGECLI_LINUX64 && unzip -qo -d $(Agent.TempDirectory) bridge.zip && rm -f bridge.zip
# $(Agent.TempDirectory)/synopsys-bridge --verbose --stage polaris polaris.assessment.types='SAST' polaris.application.name='kyleh' polaris.project.name='GitHub' polaris.branch.name=1 project.directory=WebGoat-Kyle
- bash: |
curl -fLsS -o bridge.zip $BRIDGECLI_LINUX64 && unzip -qo -d $(Agent.TempDirectory) bridge.zip && rm -f bridge.zip
cd WebGoat-Kyle
$(Agent.TempDirectory)/synopsys-bridge --verbose --stage polaris \
polaris.assessment.types='SAST' \
polaris.application.name='kyleh' \
polaris.project.name='GitHub' \
polaris.branch.name=2
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '/home/vsts/work/1/s/WebGoat-Kyle/.bridge/Polaris Coverity Capture/idir.zip'
ArtifactName: 'coverity idir'
publishLocation: 'Container'
- bash: |
cd WebGoat-Kyle
$(Agent.TempDirectory)/synopsys-bridge --verbose --stage polaris \
polaris.assessment.types='SCA' \
polaris.application.name='kyleh' \
polaris.project.name='GitHub' \
polaris.branch.name=2
- checkout: AzureBoardsScript
- task: CmdLine@2
inputs:
script: |
cd Implementations/AzureBoardsScript
python polaris_azure_ci.py --config "polaris-azure.conf" --polaris-application-name "kyleh" --polaris-project-name "GitHub" --polaris-branch-name 1 --polaris-severities-filter "''''critical'''',''''high'''',''''medium'''',''''low'''',''''info''''" --azure-project-name "PolarisTickets" --azure-iteration-path "iteration 2" --azure-area-path "area path test"
cat logs/synopsys-azure.log