From 73f61aa3386d9a4d43464b5c31a20d64b6e69927 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Mon, 17 Feb 2025 18:13:12 +0100 Subject: [PATCH] cache: enable gha cache backend if cache service v2 detected Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- util/buildflags/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/buildflags/cache.go b/util/buildflags/cache.go index abaa8acf..f0c2a164 100644 --- a/util/buildflags/cache.go +++ b/util/buildflags/cache.go @@ -266,5 +266,5 @@ func isActive(pb *controllerapi.CacheOptionsEntry) bool { if pb.Type != "gha" { return true } - return pb.Attrs["token"] != "" && pb.Attrs["url"] != "" + return pb.Attrs["token"] != "" && (pb.Attrs["url"] != "" || pb.Attrs["url_v2"] != "") }