diff --git a/polkadot/.github/workflows/release-40_publish-rc-image.yml b/polkadot/.github/workflows/release-40_publish-rc-image.yml
index c46bf534b060d4afbc77d2fc82faeae5e9c1ad8b..3d91c5b8c682b85d3ae937ff0b98690394b41114 100644
--- a/polkadot/.github/workflows/release-40_publish-rc-image.yml
+++ b/polkadot/.github/workflows/release-40_publish-rc-image.yml
@@ -112,7 +112,7 @@ jobs:
       - name: Login to Dockerhub
         uses: docker/login-action@v2
         with:
-          username: ${{ inputs.owner }}
+          username: ${{ secrets.DOCKERHUB_USERNAME }}
           password: ${{ secrets.DOCKERHUB_TOKEN }}
 
       - name: Push Container image for ${{ matrix.binary }}
diff --git a/polkadot/scripts/ci/common/lib.sh b/polkadot/scripts/ci/common/lib.sh
index a04dc2ef1da0ed153cb683e17517b2ba7d35cf32..e490ec22d5bf4f845c6c662122f8849b0f39d534 100755
--- a/polkadot/scripts/ci/common/lib.sh
+++ b/polkadot/scripts/ci/common/lib.sh
@@ -206,7 +206,7 @@ fetch_release_artifacts() {
     -H "Accept: application/vnd.github+json" \
     -H "Authorization: Bearer ${GITHUB_TOKEN}" \
     -H "X-GitHub-Api-Version: 2022-11-28" \
-    https://api.github.com/repos/${REPO}/releases/$RELEASE_ID > release.json
+    https://api.github.com/repos/${REPO}/releases/${RELEASE_ID} > release.json
 
   # Get Asset ids
   ids=($(jq -r '.assets[].id' < release.json ))