style: cargo fmt the workspace (release-gate cargo-fmt was red)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
412251ac9a
commit
db4de0ac96
@@ -58,7 +58,13 @@ pub async fn verify_declared_signature(
|
||||
sig_ref: &str,
|
||||
allow_insecure_registry: bool,
|
||||
) -> Result<()> {
|
||||
verify_with_key_path(image, sig_ref, &pinned_pubkey_path(), allow_insecure_registry).await
|
||||
verify_with_key_path(
|
||||
image,
|
||||
sig_ref,
|
||||
&pinned_pubkey_path(),
|
||||
allow_insecure_registry,
|
||||
)
|
||||
.await
|
||||
}
|
||||
|
||||
async fn verify_with_key_path(
|
||||
@@ -192,7 +198,9 @@ mod tests {
|
||||
)
|
||||
.await
|
||||
.unwrap_err();
|
||||
assert!(err.to_string().contains("pinned cosign public key is missing"));
|
||||
assert!(err
|
||||
.to_string()
|
||||
.contains("pinned cosign public key is missing"));
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
|
||||
@@ -158,9 +158,7 @@ impl ContainerRuntime for PodmanRuntime {
|
||||
.podman_cli(&["secret", "inspect", &r.secret_name, "--format", &fmt])
|
||||
.await
|
||||
{
|
||||
if out.status.success()
|
||||
&& String::from_utf8_lossy(&out.stdout).trim() == hash
|
||||
{
|
||||
if out.status.success() && String::from_utf8_lossy(&out.stdout).trim() == hash {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user