diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2022-10-13 23:37:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-13 23:37:16 +0300 |
commit | d7a414b759e0010e95f8d97700c2a745f6ffe46f (patch) | |
tree | 4b2a634e6ed30e7f8ac5f75ba946cf20dca93c0c | |
parent | e65ff98a04f00fbef90331105ff5a9e3c91b2ab1 (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.yml | 18 |
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: |