Skip to content

Commit b563325

Browse files
committed
[CI] Add SHA256 checksum for binary uploads to S3
This ensures binary uploads to S3 attaches a SHA256 checksum.
1 parent a797a36 commit b563325

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/actions/binary-upload/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ runs:
4343
| jq -r '.value' > "${AWS_WEB_IDENTITY_TOKEN_FILE}"
4444
4545
for pkg in dist/*; do
46-
aws s3 cp "$pkg" "${PYTORCH_S3_BUCKET_PATH}" --acl public-read
46+
aws s3 cp "$pkg" "${PYTORCH_S3_BUCKET_PATH}" --acl public-read --checksum-algorithm SHA256
4747
done

.github/workflows/_binary_upload.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
fi
118118
119119
for pkg in dist/*; do
120-
${AWS_CMD} "$pkg" "${PYTORCH_S3_BUCKET_PATH}" --acl public-read
120+
${AWS_CMD} "$pkg" "${PYTORCH_S3_BUCKET_PATH}" --acl public-read --checksum-algorithm SHA256
121121
done
122122
123123
- name: Upload package to pypi

0 commit comments

Comments
 (0)