diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index e2e33ba..144f725 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -91,13 +91,14 @@ jobs: shell: bash run: | cp ./LICENSE ./${{ env.OUTPUT_DIR }}/${{ env.CHOCO_SRC_DIR }}/LICENSE.txt - verificationFile=./${{ env.OUTPUT_DIR }}/${{ env.CHOCO_SRC_DIR }}/VERIFICATION.txt - touch $verificationFile + cp ./VERIFICATION ./${{ env.OUTPUT_DIR }}/${{ env.CHOCO_SRC_DIR }}/VERIFICATION.txt + echo "Checksums for the files in the package are:" >> ./${{ env.OUTPUT_DIR }}/${{ env.CHOCO_SRC_DIR }}/VERIFICATION.txt find ${{ env.OUTPUT_DIR }}/${{ env.CHOCO_SRC_DIR }} -type f | while read f do - filename="$basename -- $f" - echo $filename >> $verificationFile + filename="$(basename $f) [$f]" + filehash=$(sha256sum $f | awk '{print $1}') + echo "$filename -- $filehash" >> ./${{ env.OUTPUT_DIR }}/${{ env.CHOCO_SRC_DIR }}/VERIFICATION.txt done - name: Create the Chocolatey packages diff --git a/VERIFICATION b/VERIFICATION new file mode 100644 index 0000000..77341b2 --- /dev/null +++ b/VERIFICATION @@ -0,0 +1,21 @@ +VERIFICATION +Verification is intended to assist Chocolatey moderators and the Chocolatey community +in verifying that this package's contents are trustworthy. + +This package contains a number of assemblies (DLL) files, along with dependent files. +This file lists their SHA256 checksums. + +There is no other source for installation of these files, other than Chocolatey: +The files are built and packaged and uploaded to Chocolatey; other than referenced files (e.g. .NET Core), they do not currently reside in any other public source. +Therefore, it is not possible to download an installer to compare checksums. + +However, the checksums in here are generated as part of the build process, +and reflect the files that are packaged and submitted to Chocolatey. + +It is still worthwhile comparing the checksums in this file to the ones for the files that have been installed by Chocolatey on your local system. + +You can use one of the following methods to obtain the checksum from a local file: + - Use powershell function 'Get-Filehash' + - Use chocolatey utility 'checksum.exe' + +File 'LICENSE.txt' is obtained from diff --git a/build/chocolatey/biztalkmigrator-cli/biztalkmigrator-cli.nuspec b/build/chocolatey/biztalkmigrator-cli/biztalkmigrator-cli.nuspec index 851e6ed..7a2170f 100644 --- a/build/chocolatey/biztalkmigrator-cli/biztalkmigrator-cli.nuspec +++ b/build/chocolatey/biztalkmigrator-cli/biztalkmigrator-cli.nuspec @@ -4,10 +4,11 @@ biztalkmigrator-cli 0.0.1-beta - https://github.com/azure/aimtool + https://github.com/Azure/aimtool/blob/main/build/chocolatey/biztalkmigrator-cli/biztalkmigrator-cli.nuspec https://github.com/azure/aimtool https://github.com/azure/aimtool/issues BizTalk Migrator Dependency - Core CLI + probertdaniel,345paul,valrobb Microsoft https://github.com/azure/aimtool https://github.com/azure/aimtool/blob/master/LICENSE