Skip to content

Commit

Permalink
more validation to the helm repo index file
Browse files Browse the repository at this point in the history
  • Loading branch information
hookenz committed Feb 20, 2024
1 parent 3dd0f41 commit cdfedf4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/libhelm/binary/search_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ func (hbpm *helmBinaryPackageManager) SearchRepo(searchRepoOpts options.SearchRe
return nil, errInvalidRepoURL
}

if file.APIVersion == "" || file.Entries == nil {
return nil, errInvalidRepoURL
}

result, err := json.Marshal(file)
if err != nil {
return nil, errInvalidRepoURL
Expand Down

0 comments on commit cdfedf4

Please sign in to comment.