mirror of
https://github.com/actions/toolkit
synced 2025-05-09 08:33:00 +00:00
use sha256 instead of md5 for artifact v4 integrity hash
This commit is contained in:
parent
494f12bcd9
commit
82474125c8
3 changed files with 11 additions and 11 deletions
|
@ -99,9 +99,9 @@ export async function uploadArtifact(
|
|||
size: uploadResult.uploadSize ? uploadResult.uploadSize.toString() : '0'
|
||||
}
|
||||
|
||||
if (uploadResult.md5Hash) {
|
||||
if (uploadResult.sha256Hash) {
|
||||
finalizeArtifactReq.hash = StringValue.create({
|
||||
value: `md5:${uploadResult.md5Hash}`
|
||||
value: `sha256:${uploadResult.sha256Hash}`
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue