fix: improve conditional check for image size in GHCR deletion script

This commit is contained in:
GitHub Actions
2026-02-10 06:25:09 +00:00
parent ed3d997c3f
commit bf64878b64
3 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ action_delete_ghcr() {
manifest=$(curl -sS -H "Accept: application/vnd.docker.distribution.manifest.v2+json" -H "Authorization: Bearer $GITHUB_TOKEN" "$manifest_url" || true)
if [[ -n "$manifest" ]]; then
bytes=$(echo "$manifest" | jq -r '.layers // [] | map(.size) | add // 0')
if [[ "$bytes" != "null" && "$bytes" -gt 0 2>/dev/null ]]; then
if [[ "$bytes" != "null" ]] && (( bytes > 0 )) 2>/dev/null; then
candidate_bytes=$((candidate_bytes + bytes))
fi
fi
+2 -2
View File
@@ -19,8 +19,8 @@ REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
TEST_RESULTS="$REPO_ROOT/test-results/qa-auth-test-results.log"
# Clear previous results
> "$TEST_RESULTS"
> "$COOKIE_FILE"
: > "$TEST_RESULTS"
: > "$COOKIE_FILE"
echo -e "${BLUE}=== QA Test: Certificate Page Authentication ===${NC}"
echo "Testing authentication fixes for certificate endpoints"