Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/PowerShell/PowerShell.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-10-13 23:37:16 +0300
committerGitHub <noreply@github.com>2022-10-13 23:37:16 +0300
commitd7a414b759e0010e95f8d97700c2a745f6ffe46f (patch)
tree4b2a634e6ed30e7f8ac5f75ba946cf20dca93c0c
parente65ff98a04f00fbef90331105ff5a9e3c91b2ab1 (diff)
[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>
-rw-r--r--tools/releaseBuild/azureDevOps/templates/compliance/apiscan.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/releaseBuild/azureDevOps/templates/compliance/apiscan.yml b/tools/releaseBuild/azureDevOps/templates/compliance/apiscan.yml
index 55a40f34e0..df58aeae1a 100644
--- a/tools/releaseBuild/azureDevOps/templates/compliance/apiscan.yml
+++ b/tools/releaseBuild/azureDevOps/templates/compliance/apiscan.yml
@@ -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: