Skip to content

Commit

Permalink
allow key lookups for http
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayk committed Oct 24, 2024
1 parent 2566549 commit 3d04e90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/apk/apk/implementation.go
Original file line number Diff line number Diff line change
Expand Up @@ -927,8 +927,8 @@ func (a *APK) fetchChainguardKeys(ctx context.Context, repository string) error

log := clog.FromContext(ctx)

if !strings.HasPrefix(repository, "https://") {
log.Debugf("ignoring non-https repository %s", repository)
if !strings.HasPrefix(repository, "https://") && !strings.HasPrefix(repository, "http://") {
log.Debugf("ignoring non-http(s) repository %s", repository)
return nil
}

Expand Down
1 change: 1 addition & 0 deletions pkg/apk/auth/auth_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package auth

0 comments on commit 3d04e90

Please sign in to comment.