Skip to content

Commit

Permalink
Remove csv convertion (Azure#26448)
Browse files Browse the repository at this point in the history
* Add code owner file in sparse checkout

* Remove unused csv conversion.
  • Loading branch information
sima-zhu authored Jan 14, 2022
1 parent 3c65f0e commit fccdceb
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions eng/pipelines/aggregate-reports.yml
Original file line number Diff line number Diff line change
@@ -183,29 +183,6 @@ stages:
condition: succeededOrFailed()
continueOnError: true

- pwsh: |
$results = (Get-Content "$(Pipeline.workspace)\.gdn\.r\CredScan\001\CredScan-matches.sarif" | ConvertFrom-Json).runs.results
$csvRows = @()
$pathMatchRegex = ("$(Build.SourcesDirectory)" -replace "\\", "/")
$results | ForEach-Object {
$csvRows += [pscustomobject]@{
ruleId = $_.ruleId
ruleIndex = $_.ruleIndex
fingerprints = $_.fingerprints
message = $_.message
properties = $_.properties
rank = $_.rank
fileName = $_.analysisTarget.uri -replace ".*$pathMatchRegex(.*)", "https://github.com/Azure/azure-sdk-for-java/blob/main/`$1"
startLine = $_.locations.physicalLocation.region.startLine
startColumn = $_.locations.physicalLocation.region.startColumn
endLine = $_.locations.physicalLocation.region.endLine
endColumn = $_.locations.physicalLocation.region.endColumn
level = $_.level
}
}
$csvRows | Export-Csv -Path "$(Pipeline.workspace)\.gdn\.r\CredScan\001\CredScan-matches.csv" -NoTypeInformation
displayName: Add converted csv file for CredScan-matches.sarif
- task: securedevelopmentteam.vss-secure-development-tools.build-task-publishsecurityanalysislogs.PublishSecurityAnalysisLogs@3
displayName: 'Publish Security Analysis Logs'
condition: succeededOrFailed()

0 comments on commit fccdceb

Please sign in to comment.