Skip to content

Commit

Permalink
Include sha256 digest for each tar file in github artifacts (#116)
Browse files Browse the repository at this point in the history
* Before enabling signed binaries on Linux, this is a small step towards helping customers verify the integrity of our binaries.
* Packages published to public repositories are indirectly signed since the repo manifest is signed.
  • Loading branch information
shishirb-MSFT authored Apr 8, 2022
1 parent 8d4448e commit 7027c2b
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion azure-pipelines/publishing/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ parameters:
values:
- true
- false
- name: PublishAsDraft
displayName: Publish as draft
type: boolean
values:
- true
- false

stages:
- stage: pre_build
Expand Down Expand Up @@ -81,17 +87,34 @@ stages:
ls -lR $(Build.ArtifactStagingDirectory)/**/*.tar
displayName: Release Information

- task: Bash@3
inputs:
targetType: 'inline'
script: 'sha256sum ./*.tar > ../hashes_sha256.txt'
workingDirectory: $(Build.ArtifactStagingDirectory)/github-release-artifacts
displayName: Compute hashes of archive files

- task: Bash@3
inputs:
targetType: 'inline'
script: 'cat ./hashes_sha256.txt'
workingDirectory: $(Build.ArtifactStagingDirectory)
displayName: Display hashes of archive files

- task: GitHubRelease@1
condition: eq(${{parameters.SkipPublishing}}, false)
inputs:
gitHubConnection: 'github_gauth'
repositoryName: 'microsoft/do-client'
action: 'create'
assets: '$(Build.ArtifactStagingDirectory)/**/*.tar'
assets: |
$(Build.ArtifactStagingDirectory)/**/*.tar
$(Build.ArtifactStagingDirectory)/hashes*.txt
tagSource: 'userSpecifiedTag'
tag: '$(Release.Version)'
title: '$(Release.Title)'
isPreRelease: true
isDraft: ${{parameters.PublishAsDraft}}
changeLogCompareToRelease: 'lastNonDraftReleaseByTag'
changeLogCompareToReleaseTag: '$(Release.PreviousVersion)'
changeLogType: 'commitBased'

0 comments on commit 7027c2b

Please sign in to comment.