Verify the hash of downloaded Doxygen in CI

This commit is contained in:
Oliver Hamlet
2025-10-01 20:31:07 +01:00
parent d859edc2ba
commit d9179544c9
2 changed files with 14 additions and 0 deletions
+7
View File
@@ -229,6 +229,13 @@ jobs:
working-directory: docs
run: |
curl -sSfLO https://github.com/doxygen/doxygen/releases/download/Release_1_13_2/doxygen-1.13.2.windows.x64.bin.zip
$hash = Get-FileHash -Algorithm SHA256 doxygen-1.13.2.windows.x64.bin.zip
$expectedHash = 'DEDBCF1D05911AFC003989D33194AB95539E2EF4535CC00143B5917C22614406'
if ($hash.Hash -ne $expectedHash) {
throw 'Unexpected hash: $($hash.Hash)'
}
Expand-Archive doxygen-1.13.2.windows.x64.bin.zip
echo "${{ github.workspace }}\doxygen-1.13.2.windows.x64.bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
+7
View File
@@ -79,6 +79,13 @@ jobs:
working-directory: docs
run: |
curl -sSfLO https://github.com/doxygen/doxygen/releases/download/Release_1_13_2/doxygen-1.13.2.windows.x64.bin.zip
$hash = Get-FileHash -Algorithm SHA256 doxygen-1.13.2.windows.x64.bin.zip
$expectedHash = 'DEDBCF1D05911AFC003989D33194AB95539E2EF4535CC00143B5917C22614406'
if ($hash.Hash -ne $expectedHash) {
throw 'Unexpected hash: $($hash.Hash)'
}
Expand-Archive doxygen-1.13.2.windows.x64.bin.zip
echo "${{ github.workspace }}\doxygen-1.13.2.windows.x64.bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append