Update `rules_cc` dep

(ignore-relnotes)

PiperOrigin-RevId: 1025470340
Change-Id: Iba5da040274b0c7a7f00dc4a65ce131331557f7f
diff --git a/MODULE.bazel b/MODULE.bazel
index 28bfa5b..2a79eae 100644
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -5,7 +5,7 @@
 )
 
 bazel_dep(name = "platforms", version = "0.0.11")
-bazel_dep(name = "rules_cc", version = "0.2.25")
+bazel_dep(name = "rules_cc", version = "0.2.28")
 bazel_dep(name = "bazel_features", version = "1.55.0")
 bazel_dep(name = "bazel_skylib", version = "1.6.1")
 bazel_dep(name = "protobuf", version = "32.1", repo_name = "com_google_protobuf")
diff --git a/java/common/BUILD b/java/common/BUILD
index 096f77b..7887b1f 100644
--- a/java/common/BUILD
+++ b/java/common/BUILD
@@ -38,7 +38,6 @@
     visibility = ["//visibility:public"],
     deps = [
         "@bazel_features//:features",
-        "@rules_cc//cc:action_names_bzl",
         "@rules_cc//cc/common:cc_helper_bzl",
     ],
 )
diff --git a/java/common/rules/impl/BUILD b/java/common/rules/impl/BUILD
index ed1eb2f..a6eb44b 100644
--- a/java/common/rules/impl/BUILD
+++ b/java/common/rules/impl/BUILD
@@ -21,7 +21,6 @@
     deps = [
         ":java_helper_bzl",
         "//java/common:proguard_spec_info_bzl",
-        "@rules_cc//cc:action_names_bzl",  # TODO: remove after https://github.com/bazelbuild/rules_cc/issues/913 is fixed
         "@rules_cc//cc/common:cc_helper_bzl",
     ],
 )