Skip to content

Commit

Permalink
Merge pull request #180 from jvanz/issue179
Browse files Browse the repository at this point in the history
fix: do not use image url to get registry auth data.
  • Loading branch information
jvanz authored Apr 11, 2024
2 parents 1075c0e + b1ebe98 commit f17c59c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/verify/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use crate::registry::build_fully_resolved_reference;
use crate::sources::Sources;
use crate::{errors::FailedToParseYamlDataError, policy::Policy};

Expand Down Expand Up @@ -336,7 +337,8 @@ pub async fn fetch_sigstore_remote_data(
}

// obtain registry auth:
let auth = Registry::auth(image_url);
let reference = build_fully_resolved_reference(image_url)?;
let auth = Registry::auth(reference.registry());

let sigstore_auth = match auth {
RegistryAuth::Anonymous => sigstore::registry::Auth::Anonymous,
Expand Down

0 comments on commit f17c59c

Please sign in to comment.