Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
0c75cac
initisl
mattleibow Jun 8, 2023
db998cf
Set up CI with Azure Pipelines
mattleibow Jun 8, 2023
700d4d4
Update azure-pipelines-cve.yml for Azure Pipelines
mattleibow Jun 8, 2023
b0b6cf3
Update azure-pipelines-cve.yml for Azure Pipelines
mattleibow Jun 8, 2023
6158848
Update azure-pipelines-cve.yml for Azure Pipelines
mattleibow Jun 8, 2023
56c3f41
sadf
mattleibow Jun 8, 2023
f250c82
none
mattleibow Jun 8, 2023
d7bf8f4
asdf
mattleibow Jun 8, 2023
a0469f1
this
mattleibow Jun 8, 2023
753460c
asdf
mattleibow Jun 8, 2023
8fe169d
asdfasdf
mattleibow Jun 8, 2023
bbefac0
asdf
mattleibow Jun 8, 2023
14afaf9
extract
mattleibow Jun 9, 2023
006d5f7
update step
mattleibow Jun 9, 2023
e165403
Update azure-pipelines-cve.yml for Azure Pipelines
mattleibow Jun 9, 2023
d6b110e
Update azure-pipelines-cve.yml for Azure Pipelines
mattleibow Jun 9, 2023
f729bc1
Update azure-pipelines-cve.yml for Azure Pipelines
mattleibow Jun 9, 2023
d5a4693
Update azure-pipelines-cve.yml for Azure Pipelines
mattleibow Jun 9, 2023
a194501
Update azure-pipelines-cve.yml for Azure Pipelines
mattleibow Jun 9, 2023
9175d95
Update azure-pipelines-cve.yml for Azure Pipelines
mattleibow Jun 9, 2023
7d60a5b
Update azure-pipelines-cve.yml for Azure Pipelines
mattleibow Jun 9, 2023
1ae82bf
Merge remote-tracking branch 'origin/main' into dev/actions
mattleibow Jun 9, 2023
5e94011
Add triage
mattleibow Jun 9, 2023
9965b93
always
mattleibow Jun 9, 2023
eec60f1
Update azure-pipelines-cve.yml for Azure Pipelines
mattleibow Jun 9, 2023
070f133
Update azure-pipelines-cve.yml for Azure Pipelines
mattleibow Jun 9, 2023
3221d7b
Ignore ICU as it is not used
mattleibow Jun 9, 2023
edb683f
markdown the output
mattleibow Jun 9, 2023
d210ab7
raw
mattleibow Jun 9, 2023
4b542e0
Merge branch 'main' into dev/actions
mattleibow Jun 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions scripts/azure-pipelines-cve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
trigger: none

pr: none

parameters:
- name: buildId
displayName: 'The specific build ID to scan.'
type: string
default: 'latest'

resources:
pipelines:
- pipeline: SkiaSharp
source: SkiaSharp
trigger: none

pool:
name: Azure Pipelines
vmImage: ubuntu-20.04

steps:

- task: UsePythonVersion@0
displayName: Switch to the correct Python version
inputs:
versionSpec: '3.x'
architecture: 'x64'

- pwsh: pip install cve-bin-tool
displayName: Install the CVE Binary Tool

- pwsh: cve-bin-tool --update now --nvd-api-key ${env:NVD_TOKEN}
displayName: Update the database
continueOnError: true

- template: azure-templates-download-artifacts.yml
parameters:
sourceBuildId: ${{ parameters.buildId }}
artifacts:
- name: nuget-signed

- pwsh: |
foreach ($nupkg in (Get-ChildItem output/*.nupkg)) {
$dest = "output/temp-nuget/$($nupkg.Name.TrimEnd('.nupkg'))"
Write-Host "Extracting '$nupkg' to '$dest'..."
Expand-Archive $nupkg $dest
}
New-Item output/logs -Type Directory -Force | Out-Null
displayName: Extract all the packages

- pwsh: |
cve-bin-tool output/temp-nuget --format html,console --output-file output/logs/report.html --triage-input-file scripts/guardian/cve-triage.json
Get-Content output/logs/report.txt | Write-Host
displayName: Run the CVE Binary Tool

- task: PublishPipelineArtifact@1
displayName: Upload the final report
condition: always()
inputs:
targetPath: output/logs
publishLocation: 'pipeline'

- pwsh: |
$content = (Get-Content output/logs/report.txt -Raw)
$content = '```' + [Environment]::NewLine + $content + [Environment]::NewLine + '```'
$content | Set-Content output/logs/report.txt
Write-Host "##vso[task.uploadsummary]$(Build.SourcesDirectory)/output/logs/report.txt"
displayName: Upload the build summary
condition: always()
Loading