diff --git a/release_pkgs.py b/release_pkgs.py index e916e249..1f31e548 100644 --- a/release_pkgs.py +++ b/release_pkgs.py @@ -13,7 +13,6 @@ import base64 import logging import os import shutil -from hashlib import sha256 from pathlib import Path from subprocess import Popen, PIPE @@ -35,7 +34,6 @@ class PkgUploader: def upload_pkg_to_r2(self, filename, upload_file_path): endpoint_url = f"https://{self.account_id}.r2.cloudflarestorage.com" - token_secret_hash = sha256(self.client_secret.encode()).hexdigest() config = Config( region_name='auto', @@ -48,7 +46,7 @@ class PkgUploader: "s3", endpoint_url=endpoint_url, aws_access_key_id=self.client_id, - aws_secret_access_key=token_secret_hash, + aws_secret_access_key=self.client_secret, config=config, )