chore(deps): bump the cargo-minor-and-patch group across 1 directory with 23 updates (#8855)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lifei Zhou <lifei@squareup.com>
This commit is contained in:
dependabot[bot]
2026-04-27 07:43:43 +00:00
committed by GitHub
parent 8014adf982
commit 978ff24b10
8 changed files with 198 additions and 151 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
use anyhow::{bail, Context, Result};
use sha2::{Digest, Sha256};
use sigstore_verify::trust_root::TrustedRoot;
use sigstore_verify::trust_root::{TrustedRoot, SIGSTORE_PRODUCTION_TRUSTED_ROOT};
use sigstore_verify::types::{Bundle, Sha256Hash};
use sigstore_verify::VerificationPolicy;
use std::env;
@@ -165,7 +165,8 @@ async fn verify_provenance(archive_data: &[u8], tag: &str) -> Result<bool> {
}
};
let trusted_root = TrustedRoot::production().context("Failed to load Sigstore trusted root")?;
let trusted_root = TrustedRoot::from_json(SIGSTORE_PRODUCTION_TRUSTED_ROOT)
.context("Failed to load Sigstore trusted root")?;
let policy = VerificationPolicy::with_issuer(GITHUB_ACTIONS_ISSUER);
let artifact_digest =
Sha256Hash::from_hex(&digest).context("Failed to parse artifact digest")?;