Fix buildkit cache cleanup script authentication and error handling

The script was failing because GET requests didn't include authentication headers.

Changes:

  • Add JOB-TOKEN header to all API GET requests (was only on DELETE)
  • Add error handling for non-200 responses
  • Add type checking to prevent crashes on unexpected API responses

Fixes the recurring buildkit_cache_cleanup job failures.

Merge request reports

Loading