We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97841b7 commit 0c97906Copy full SHA for 0c97906
src/oci.rs
@@ -84,7 +84,10 @@ async fn setup_trust_repository(cli: &Cli) -> Result<Box<dyn TrustRoot>, anyhow:
84
match SigstoreTrustRoot::new(None).await {
85
Ok(repo) => return Ok(Box::new(repo)),
86
Err(e) => {
87
- log::warn!("Failed to initialize TUF trust repository: {e}");
+ log::error!("Failed to initialize TUF trust repository: {e}");
88
+ if !cli.insecure_skip_signature {
89
+ return Err(anyhow!("Failed to initialize TUF trust repository and signature verification is required"));
90
+ }
91
log::info!("Falling back to manual trust repository");
92
}
93
0 commit comments