mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
[release/v7.3.0-rc.1] Create tasks to collect and publish hashes for build files. (#18284)
Co-authored-by: James Truher <jimtru@microsoft.com>
This commit is contained in:
co-authored by
James Truher
parent
e65ff98a04
commit
d7a414b759
@@ -78,6 +78,24 @@ jobs:
|
||||
retryCountOnTaskFailure: 2
|
||||
workingDirectory: '$(Build.SourcesDirectory)'
|
||||
|
||||
- pwsh: |
|
||||
Get-ChildItem '$(BinDir)' -File |
|
||||
Foreach-Object {
|
||||
[pscustomobject]@{
|
||||
Path = $_.FullName
|
||||
Version = $_.VersionInfo.FileVersion
|
||||
Md5Hash = (Get-FileHash -Algorithm MD5 -Path $_.FullName).Hash
|
||||
Sha512Hash = (Get-FileHash -Algorithm SHA512 -Path $_.FullName).Hash
|
||||
}
|
||||
} | Export-Csv -Path '$(Build.SourcesDirectory)/ReleaseFileHash.csv'
|
||||
displayName: 'Create release file hash artifact'
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: 'Publish Build File Hash artifact'
|
||||
inputs:
|
||||
pathToPublish: '$(Build.SourcesDirectory)/ReleaseFileHash.csv'
|
||||
artifactName: ReleaseFilesHash
|
||||
|
||||
- task: securedevelopmentteam.vss-secure-development-tools.build-task-apiscan.APIScan@2
|
||||
displayName: 'Run APIScan'
|
||||
inputs:
|
||||
|
||||
Reference in New Issue
Block a user