diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 08eb2d78..e74bbc69 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -92,7 +92,7 @@ jobs: - name: Checkout Actions Repository uses: actions/checkout@v4 - name: Spell Check Repo - uses: crate-ci/typos@db35ee91e80fbb447f33b0e5fbddb24d2a1a884f # v1.29.10 + uses: crate-ci/typos@72f3776b6edc3a10a567b8e43fd0524b2a3f1419 # v1.30.1 coverage: name: coverage diff --git a/Cargo.toml b/Cargo.toml index 618a5b79..ae04d85e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ members = ["crates/burrego"] anyhow = "1.0" base64 = "0.22" burrego = { path = "crates/burrego" } -cached = { version = "0.54", features = ["async_tokio_rt_multi_thread"] } +cached = { version = "0.55", features = ["async_tokio_rt_multi_thread"] } chrono = { version = "0.4.38", default-features = false } dns-lookup = "2.0" email_address = { version = "0.2.4", features = ["serde"] } diff --git a/src/callback_handler/kubernetes.rs b/src/callback_handler/kubernetes.rs index ac2b4730..e32be93a 100644 --- a/src/callback_handler/kubernetes.rs +++ b/src/callback_handler/kubernetes.rs @@ -81,7 +81,7 @@ pub(crate) async fn get_resource( #[cached( time = 5, result = true, - sync_writes = true, + sync_writes = "default", key = "String", convert = r#"{ format!("get_resource_cached({},{}),{},{:?}", api_version, kind, name, namespace) }"#, with_cached_flag = true diff --git a/src/callback_handler/oci.rs b/src/callback_handler/oci.rs index a5156349..2b617050 100644 --- a/src/callback_handler/oci.rs +++ b/src/callback_handler/oci.rs @@ -87,7 +87,7 @@ impl Client { #[cached( time = 60, result = true, - sync_writes = true, + sync_writes = "default", key = "String", convert = r#"{ format!("{}", img) }"#, with_cached_flag = true @@ -115,7 +115,7 @@ pub(crate) async fn get_oci_digest_cached( #[cached( time = 60, result = true, - sync_writes = true, + sync_writes = "default", key = "String", convert = r#"{ format!("{}", img) }"#, with_cached_flag = true @@ -130,7 +130,7 @@ pub(crate) async fn get_oci_manifest_cached( #[cached( time = 60, result = true, - sync_writes = true, + sync_writes = "default", key = "String", convert = r#"{ format!("{}", img) }"#, with_cached_flag = true diff --git a/src/callback_handler/sigstore_verification.rs b/src/callback_handler/sigstore_verification.rs index 3272853b..25cfb7f2 100644 --- a/src/callback_handler/sigstore_verification.rs +++ b/src/callback_handler/sigstore_verification.rs @@ -258,7 +258,7 @@ impl Client { #[cached( time = 60, result = true, - sync_writes = true, + sync_writes = "default", key = "String", convert = r#"{ format!("{}{:?}{:?}", image, pub_keys, annotations)}"#, with_cached_flag = true @@ -285,7 +285,7 @@ pub(crate) async fn get_sigstore_pub_key_verification_cached( #[cached( time = 60, result = true, - sync_writes = true, + sync_writes = "default", key = "String", convert = r#"{ format!("{}{:?}{:?}", image, keyless, annotations)}"#, with_cached_flag = true @@ -312,7 +312,7 @@ pub(crate) async fn get_sigstore_keyless_verification_cached( #[cached( time = 60, result = true, - sync_writes = true, + sync_writes = "default", key = "String", convert = r#"{ format!("{}{:?}{:?}", image, keyless_prefix, annotations)}"#, with_cached_flag = true @@ -339,7 +339,7 @@ pub(crate) async fn get_sigstore_keyless_prefix_verification_cached( #[cached( time = 60, result = true, - sync_writes = true, + sync_writes = "default", key = "String", convert = r#"{ format!("{}{:?}{:?}{:?}", image, owner, repo, annotations)}"#, with_cached_flag = true @@ -395,7 +395,7 @@ fn get_sigstore_certificate_verification_cache_key( #[cached( time = 60, result = true, - sync_writes = true, + sync_writes = "default", key = "String", convert = r#"{ format!("{}", get_sigstore_certificate_verification_cache_key(image, certificate, certificate_chain, require_rekor_bundle, annotations.as_ref()))}"#, with_cached_flag = true