-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-with-upload.yml
48 lines (40 loc) · 1.21 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
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
variables:
- group: rl-scanner
- name: BUILD_PATH
value: '.'
- name: REPORT_PATH
value: 'report'
- name: MY_ARTIFACT_TO_SCAN
value: 'README.md'
steps:
- task: rl-scanner-task@1
displayName: rl-scanner-task
inputs:
BUILD_PATH: $(BUILD_PATH)
REPORT_PATH: $(REPORT_PATH)
MY_ARTIFACT_TO_SCAN: $(MY_ARTIFACT_TO_SCAN)
env:
RLSECURE_ENCODED_LICENSE: $(RLSECURE_ENCODED_LICENSE)
RLSECURE_SITE_KEY: $(RLSECURE_SITE_KEY)
- 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()
- task: PublishBuildArtifacts@1
condition: succeededOrFailed()
inputs:
PathtoPublish: $(System.DefaultWorkingDirectory)/$(REPORT_PATH)/rl-html
ArtifactName: 'ReversingLabs-HTMLreport'
StoreAsTar: true