Skip to content

Commit d1c1539

Browse files
authored
Merge pull request #80 from Dstack-TEE/phala-cloud-prelaunch-script-v0.0.14
feat(prelaunch): v0.0.14 - add GHCR Accept header and reduce password log noise
2 parents 5c6bd1e + e51e2a3 commit d1c1539

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

phala-cloud-prelaunch-script/prelaunch.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
echo "----------------------------------------------"
2-
echo "Running Phala Cloud Pre-Launch Script v0.0.13"
2+
echo "Running Phala Cloud Pre-Launch Script v0.0.14"
33
echo "----------------------------------------------"
44
set -e
55

@@ -166,6 +166,7 @@ if [[ "$DOCKER_REGISTRY_TARGET" == "ghcr.io" && -n "$DSTACK_DOCKER_USERNAME" &&
166166
exit 1
167167
fi
168168
http_code=$(curl -s -o /dev/null -w "%{http_code}" -H "Authorization: Bearer $token" \
169+
-H "Accept: application/vnd.oci.image.index.v1+json,application/vnd.oci.image.manifest.v1+json,application/vnd.docker.distribution.manifest.list.v2+json,application/vnd.docker.distribution.manifest.v2+json" \
169170
"https://ghcr.io/v2/${repo}/manifests/${tag}")
170171
if [[ "$http_code" != "200" ]]; then
171172
echo "ERROR: GHCR pull access denied for $img (HTTP $http_code)"

0 commit comments

Comments
 (0)