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:
@@ -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")?;
|
||||
|
||||
Reference in New Issue
Block a user