-
Notifications
You must be signed in to change notification settings - Fork 23
/
azure-pipelines-audit.yaml
36 lines (35 loc) · 1.17 KB
/
azure-pipelines-audit.yaml
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
trigger:
branches:
include:
- main
jobs:
- job: run_42crunch_audit
displayName: 'Run Audit'
pool:
vmImage: 'ubuntu-latest'
steps:
- task: UsePythonVersion@0
displayName: Install Python
inputs:
versionSpec: '3.11'
addToPath: true
architecture: x64
- task: APISecurityAuditFreemium@1
displayName: Audit API Specifications
inputs:
enforceSQG: false
logLevel: INFO
sarifReport: '$(Build.Repository.LocalPath)/$(Build.BuildId)-auditreport.sarif'
exportAsPDF: '$(Build.Repository.LocalPath)/$(Build.BuildId)-auditreport.pdf'
- task: PublishBuildArtifacts@1
displayName: publishAuditSarif
inputs:
PathtoPublish: '$(Build.Repository.LocalPath)/$(Build.BuildId)-auditreport.sarif'
ArtifactName: 'CodeAnalysisLogs'
publishLocation: 'Container'
- task: PublishBuildArtifacts@1
displayName: publishAuditPDF
inputs:
PathtoPublish: '$(Build.Repository.LocalPath)/$(Build.BuildId)-auditreport.pdf'
ArtifactName: 'Reports'
publishLocation: 'Container'