diff --git a/includes/rate-limit-check.yml b/includes/rate-limit-check.yml
index a2bcdacc9ea15b64b392596311eedf11837ec5e2..fe04ebea2744febcb611e4e1f0c59fb5a22ce2f4 100644
--- a/includes/rate-limit-check.yml
+++ b/includes/rate-limit-check.yml
@@ -6,4 +6,6 @@
     - "apk add curl jq"
   script:
     - |
-      TOKEN=$(curl "https://auth.docker.io/token?service=registry.docker.io&scope=repository:ratelimitpreview/test:pull" | jq --raw-output .token) && curl --head -H "Authorization: Bearer $TOKEN" https://registry-1.docker.io/v2/$IMAGE/manifests/latest
+      IMAGE="ratelimitpreview/test"
+      TOKEN=$(curl "https://auth.docker.io/token?service=registry.docker.io&scope=repository:$IMAGE:pull" | jq -r .token)
+      curl --head -H "Authorization: Bearer $TOKEN" https://registry-1.docker.io/v2/$IMAGE/manifests/latest