-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-with-upload.yml
56 lines (48 loc) · 1.34 KB
/
azure-pipelines-with-upload.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
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
variables:
- group: rl-scanner-cloud
- name: RLPORTAL_SERVER
value: test
- name: RLPORTAL_ORG
value: Test
- name: RLPORTAL_GROUP
value: Default
- name: RL_PACKAGE_URL
value: testProject/testPackage@t1.0.0
- name: BUILD_PATH
value: '.'
- name: MY_ARTIFACT_TO_SCAN
value: 'README.md'
# value: 'eicarcom2.zip'
- name: REPORT_PATH
value: 'report'
- name: RL_VERBOSE
value: '1'
steps:
- task: rl-scanner-cloud-task@1
displayName: rl-scanner-cloud-task
inputs:
RLPORTAL_SERVER: $(RLPORTAL_SERVER)
RLPORTAL_ORG: $(RLPORTAL_ORG)
RLPORTAL_GROUP: $(RLPORTAL_GROUP)
RL_PACKAGE_URL: $(RL_PACKAGE_URL)
BUILD_PATH: $(BUILD_PATH)
MY_ARTIFACT_TO_SCAN: $(MY_ARTIFACT_TO_SCAN)
REPORT_PATH: $(REPORT_PATH)
env:
RLPORTAL_ACCESS_TOKEN: $(RLPORTAL_ACCESS_TOKEN)
- publish: $(System.DefaultWorkingDirectory)/$(REPORT_PATH)/report.cyclonedx.json
displayName: 'Publish CycloneDX'
artifact: 'CycloneDX-SBOM'
condition: succeededOrFailed()
- publish: $(System.DefaultWorkingDirectory)/$(REPORT_PATH)/report.spdx.json
displayName: 'Publish SPDX'
artifact: 'SPDX-SBOM'
condition: succeededOrFailed()
- publish: $(System.DefaultWorkingDirectory)/$(REPORT_PATH)/report.rl.json
displayName: 'Publish RL-json'
artifact: ReversingLabs-JSONreport
condition: succeededOrFailed()